Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic element building problem

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I build an element for retrieving error information generated trying to load an XML document:
<ERROR>
<DESCRIPTION>data retireved from XML parser</DESCRIPTION>
<LINE>line number retireved from XML parser</LINE>
<TEXT>text containing XML reserved chars that represent the line that has generated the error</TEXT>
</ERROR>

The element TEXT obviously contains some reserved char present in the XML document line that has generated the error, it invalidate my full element ERROR.

The only way is to filter the text for sobstitute all the reserved XML chars?
Help me.
Many thanks.


 
Whose DOM parser are you using?

The Microsoft XML 3.0 parser will convert the reserved characters for you. Like, the '<' character will be stored as '&lt;'. This is nice, because it allows us to store XML inside of XML.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top