You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.IllegalArgumentException: Doesn't look like XML: '[snip]...\OLD_001_QRev.xml'
at com.jcabi.xml.DomParser.(DomParser.java:90)
at com.jcabi.xml.XMLDocument.(XMLDocument.java:155) ...
I am using jcabi-xml-0.18.1.jar
The XML file parses fine elsewhere. I believe DomParser is giving up before it actually tries to parse the file.
Right now, I think the DomParser code is doing something like:
if (pattern doesn't match) {
throw "Doesn't look like XML"
}
parse()
Could it be changed to something like:
try {
parse()
} catch (Exception e) {
if (pattern doesn't match) {
throw "Doesn't look like XML"
} else {
rethrow e
}
}
I am attaching the XML file that caused the problem (added .txt extension so it would upload).
I am getting
I am using
jcabi-xml-0.18.1.jar
The XML file parses fine elsewhere. I believe DomParser is giving up before it actually tries to parse the file.
Right now, I think the DomParser code is doing something like:
Could it be changed to something like:
I am attaching the XML file that caused the problem (added .txt extension so it would upload).
OLD_002_QRev.xml.txt
The text was updated successfully, but these errors were encountered: