You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xerces.apache.org by ja...@db.com on 2000/04/04 18:19:01 UTC
Escaping text strings
If I want to send text that contains characters that need to be escaped,
is there a utility function in Xerces-J that will escape them for me
e.g. if I have
"<BUSINESS_NAME>Jones&Co.</BUSINESS_NAME>"
how can I caonvert it to
"<BUSINESS_NAME>Jones&Co.</BUSINESS_NAME>"
or whatever it should be.....
I am really looking for a function:
String normalize ( String string );
Also when i parse the document, and get the text, will I have to
"denormalize"?
Any ideas?
Thanks lots for any help!!
James