Re: XML strictness

2005-05-31 Thread Chris Burdess
Robert Schuster wrote: When run as 'echo a/ | jamvm -cp . xmlfilter.XMLFilter' you get the following exception: gnu.xml.dom.DomDOMException: The node doesn't belong here. More Information: document element already present: gnu.xml.dom.DomElement[a] Node Name: new at

XML strictness

2005-05-30 Thread Robert Schuster
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. I got a bug report about our DOM parser which I thought to be valid but then found something that irritates me. The following program (probably) demonstrates a problem with Classpath' DOM parser. package xmlfilter; !various imports ommitted!

Re: XML strictness

2005-05-30 Thread Per Bothner
Robert Schuster wrote: You get the same message with all proprietary JDKs prior to 1.5 . The latest incarnation however accepts creating the new node and generates the following XML upon calling 'echo a/ | /opt/sun-jdk-1.5.0/bin/java xmlfilter.XMLFilter': ?xml version=1.0 encoding=iso-8859-1?