Subject: RE: 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 <
> & (i.e. special characters) ....I am facing
> problem....the DOM parser
> translate "<" to "<" or for that matter "&" "&"
> ...which is not correct and I don't want that......so any
> clue....input...idea????
What do you mean, "which is not correct"?
& is the way you represent an ampersand character in an XML
document. Of course it is the job of the XML parser to translate &
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
|