xsl-list
[Top] [All Lists]

RE: parse an xml file

2003-09-03 00:55:18
I am using xerces DOM parser to parse an xml file  and retrieve its
Values        to put into a new xml document.....while 
retrieving value like <
&         (i.e. special characters) ....I am facing 
problem....the DOM parser
translate "&lt;" to "<" or for that matter "&amp;" "&" 
...which is not correct and I don't want that......so any 
clue....input...idea????

What do you mean, "which is not correct"?

&amp; is the way you represent an ampersand character in an XML
document. Of course it is the job of the XML parser to translate &amp;
into an ampersand character - that's what XML parsers are for.

Michael Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list