|
-
August 26th, 2005, 09:18 AM
#1
Ensuring valid XML element text
I have read about how to process XML and handle invalid text in element values; what I haven't been able to learn is: how do I ensure the text I _write_ as an XML element value is valid?
With VC++ 6.0, I'm reading text from an NTEXT database field and writing it with home-grown, text-based XML routines. (I'm not very familiar with DOM, but would be willing to work on it.)
Is there a way to pass the text thru some character encoding filter to ensure the ampersands (and all other special characters) get converted to & (and their corresponding &xxx; values) ?
Thanks for reading.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|