Best way to encode text data for XML in Java?

Posted by Epaga on Stack Overflow See other posts from Stack Overflow or by Epaga
Published on 2009-01-13T15:15:30Z Indexed on 2010/05/19 7:20 UTC
Read the original article Hit count: 233

Filed under:
|
|

Very similar to this question, except for Java.

What is the recommended way of encoding strings for an XML output in Java. The strings might contain characters like "&", "<", etc.

© Stack Overflow or respective owner

Related posts about java

Related posts about Xml