Is there any functions in java that will escape strings that are going to be put in an XML file?For example, the 4 characters listed here need to be escaped: http://java.sun.com/webservices/jaxp/dist/1.1/docs/tutorial/sax/4_refs.htmlFor example - the string: "Hello > World" needs to be "Hello > World" before being put into XML. Is there any api's that search for all chars that would mess up in XML and replace them? I have characters such as " (but not just double quote, the angled double quote) trying to be written to my xml file (which when in the xml file it looks like garbage) - the angled quotes are not listed in the table in the link above, but I assume they need to be escaped. I know someone has ran into this problem before and has written a function to replace the chars. google has been no help.
1/27/2006 4:46:39 PM