Rick Liao
2017-03-01 03:46:38 UTC
Hello,
I am using ResultSetFormatter to write out the contents of a ResultSet into
a XML file. My data in ResultSet contain an illegal character for XML,
\u0010. The formatter still outputted the character into the XML file
resulting in an incorrect XML file.
Can I configure the formatter to ignore the illegal character? Or do I have
to clean the data before giving it to the formatter?
Code:
ResultSetFormatter.outputAsXML(outputStream, sparqlResultSet)
Thanks for your time!
Rick
I am using ResultSetFormatter to write out the contents of a ResultSet into
a XML file. My data in ResultSet contain an illegal character for XML,
\u0010. The formatter still outputted the character into the XML file
resulting in an incorrect XML file.
Can I configure the formatter to ignore the illegal character? Or do I have
to clean the data before giving it to the formatter?
Code:
ResultSetFormatter.outputAsXML(outputStream, sparqlResultSet)
Thanks for your time!
Rick