Forum Discussion

ionatan's avatar
ionatan
Roku Guru
13 years ago

New line delimiters in xml attributes - ignored

It seems that new lines chars (chr10) from xml attributes are ignored when xml feeds are parsed.
Is it possible to read also these line delimiters from xml attributes?

2 Replies

  • As I understand it, putting an actual newline character in an attribute value is not compliant with the XML spec and most parsers will normalize it into a single space. I don't know what tool you're using to generate your XML, but be sure it is encoding the character correctly:

    <element attribute="First line&#10;Second line&#10;Third line..." />