XML problems

Marco Trudel mtrudel@gmx.ch
Thu Feb 15 08:22:00 GMT 2007


Hey List

Here a long (very long) ago promised failing XML example (GCJ rev 
121693). Reading XML works, printing (transforming) fails:

----- expected output start -----
reading xml:
<test>
         <line>Just a line of Text.</line>
</test>

writing xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<test>
<foo>abc</foo>
</test>
----- expected output end -----

----- actual output start -----
reading xml:
<test>
	<line>Just a line of Text.</line>
</test>

writing xml:
Exception in thread "main" java.lang.NullPointerException
    at gnu.xml.dom.ls.SAXEventSink.startDocument(XmlTest-1.1)
    at XmlTest.writeXml(XmlTest-1.1)
----- actual output end -----


Are there any comments on it? Otherwise I'll add a bugreport for GNU 
classpath (assuming it's a classpath issue).


Marco
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: XmlTest.java
URL: <http://gcc.gnu.org/pipermail/java/attachments/20070215/4c17f413/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.xml
Type: text/xml
Size: 89 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20070215/4c17f413/attachment.xml>


More information about the Java mailing list