[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] parse an xml file


Subject: RE: [xsl] parse an xml file
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Wed, 3 Sep 2003 08:55:18 +0100

> 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 &lt;
> &amp; 	(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



Current Thread
Keywords
xml