Hi all,
I have an application that uses XML data from a Servlet. The XML is
not in a file. Rather, it is dynamically generated. I have problems with
some special chars within the actual xml files themselves.
For example if a value in the XML was "children < 3". I would have a problem
cause "<" is a reserved symbol. I have to replace each occurence of this and
other reserved symbols with "<" and other html/xml friendly versions of
these.
The function to do so is messy and long for something like this.
My question is: is there some type of utility class that already
does this? And if so, is the performance any better than writing one urself?
I know that response.encodeURL can encode an URL to do something
like this but this is not a URL. Its an entire XML document.
Thanks,
-Tim
[EMAIL PROTECTED]
727-738-3000 x6549
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html