"Chen, Gin" wrote: > > 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. > ... It's an entire XML document. >
If the document has '<', then it isn't an XML document at all. From your description, the application that claims to be generating XML has a bug. Best thing is to fix the application to generate valid XML. If you can't do that, then you need to find out what exactly the application _is_ generating before you can write a filter to convert it to XML. Is the '<' the only problem? Does it generate binary data? Does it regenerate user input? For example, you can't use CDATA sections if it's possible that the data might contain the CDATA end marker. This is all mildly off-topic for servlet-interest, you might want to try XML-DEV: http://www.xml.org/xml/xmldev.shtml XML-DEV is a very good mailing list. --- Christopher St. John [EMAIL PROTECTED] DistribuTopia http://www.distributopia.com ___________________________________________________________________________ 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
