|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Parsing illegal characters out of XML before XSL:FO tr
Hey all.. a portion fo the website we are building takes some XML data and
transforms it with an XSL stylesheet giving FO coding then its transformed
into PDF.. the current problem at hand is I'm taking a bunch of our java
objects and making an XML document out of them by hand, something like this:
xmlData.append("<?xml version='1.0' encoding='UTF-8'?><USERLIST><STATE>");
xmlData.append("<SYSTEM>" + flexReference.getPlatform() + "</SYSTEM>");
xmlData.append("<MEMBERS>" + flexReference.getMembers() + "</MEMBERS>");
xmlData.append("<ASSETS>" + flexReference.getAssets() + "</ASSETS>");
etc.
Anyway this is all pulled from our database and some of the values that will
be inserted have characters that are illegal for XML, ie an & etc.. is there
a parser out there that can parse a java String or StringBuffer and add the
proper escape codes that are needed for the XML to be well formed then be
able to be transformed correctly?
Thanks!
-David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








