ionatan
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2013
10:07 AM
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?
Is it possible to read also these line delimiters from xml attributes?
2 REPLIES 2


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2013
10:18 AM
Re: New line delimiters in xml attributes - ignored
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 Second line Third line..." />
ionatan
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2013
12:41 PM
Re: New line delimiters in xml attributes - ignored
That works. Thanks!