Escape Special Characters in XML output
Brought to you by:
crsadun
Hi Christiano,
i'm glad to see, that the Tag-Names in the XML output
are fixed now.
Unfortunately I had some special characters like
ampersand.. in my flat files. This kept me from parsing
the output.
Please find a patch attached. When you apply this with
patch -p1 < ../xml_escape.patch in the src directory it
changes the printFieldValuesXML method in LineFormat to
use the StringEscapeUtils from the commons-lang-2.1.jar.
Of course you should add the commons-lang to the
classpath. You can get the jar at
http://jakarta.apache.org/commons/index.html
again thank you very much for the Library.
regards
Ludwig
LineFormat XML Patch