P
Peter Chatterton
DOM Problem with getNodeValue()
I parsed an xml file starting with:
<?xml version="1.0" encoding="UTF-8"?>
Later, when I'm serializing the document
(after Brett McLaughlin's book),
and call getNodeValue(), I get:
version = '1.0' encoding = 'UTF-8'
If I write this out it gives errors
when I read it back in and parse it.
If I change the single quotes to double,
while serializing, it works okay.
Is this a bug in DOM?
Thanks,
Peter.
import org.w3c.dom.Document;
java version "1.4.2"
Jikes 1.16 on Textpad under win2K
I parsed an xml file starting with:
<?xml version="1.0" encoding="UTF-8"?>
Later, when I'm serializing the document
(after Brett McLaughlin's book),
and call getNodeValue(), I get:
version = '1.0' encoding = 'UTF-8'
If I write this out it gives errors
when I read it back in and parse it.
If I change the single quotes to double,
while serializing, it works okay.
Is this a bug in DOM?
Thanks,
Peter.
import org.w3c.dom.Document;
java version "1.4.2"
Jikes 1.16 on Textpad under win2K