[jdom-interest] 2 errors (?)
jhunter at collab.net
Sat Apr 7 18:03:39 PDT 2001
Stefan ALBOI wrote:
> I encountered 2 errors which I would like to report:
> Doc: XML document with 2 or more levels of general entities
> Parser: Xerces 1.3.1 (& 1.2.3)
> Method: build JDOM document using SAX
> Error: org.jdom.JDOMException: Error in building: org.jdom.Entity
> Note: DOM parse, DOM getDocument, SAX parse, JDOM build using DOM are OK!
I suspect an error in SAXHandler, but unfortunately the stack trace
doesn't say where in SAXHandler the error is really happening. It'll
take some investigating. If it's important to you, add some println()'s
in SAXHandler to figure out what's happening. I'll get to it but this
isn't at the top of my list.
> Doc: XML document starting with <?xml version="1.0" encoding="UTF-8"?>
> Parser: Oracle v2 2.1.0 beta (& 2.0.2)
> Method: build JDOM document using DOM
> Error: org.jdom.IllegalTargetException: The target "xml" is not legal for
> JDOM/XML Processing Instructions: Processing instructions cannot have a
> target of "xml" in any combination of case.
> Note: DOM parse, DOM getDocument, SAX parse, JDOM build using SAX are OK!
This one was posted recently. I believe it's an Oracle parser bug,
where they improperly report the declaration as a PI. I recommend
reporting it to them.
More information about the jdom-interest