line feed in xml?
in
Programming Questions
•
2 years ago
i'm trying to write a line feed into a String attribute in my xml, parsed on the processing side via XMLElement.getString(). using \n works fine with a String literal, but gets escaped to \\n by the processing.xml lib, which means my parsed xml actually contains a '\n' within (instead of a line feed).
what's the best way to write a line feed into my xml attribute, for processing's consumption? unicode? something else? is there a way to unescape the value returned by XMLElement.getString() (without adding org.apache.commons.lang.StringEscapeUtils, which is massively bloated)?
thanks!
1