Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#14 Some XML parsing

open
nobody
None
5
2012-10-10
2009-05-17
Ofer Wald
No

Hello,

I am trying to parse some xml files (RSS feeds) and the results are not good at this point

For example - parsing this line creates a text node, in which the < > has been changed to the html entities
<?xml version="1.0" encoding="UTF-8"?>

I would expect a node with tag="?xml" or something similar

Thanks in advance

Discussion

  • gnud
    gnud
    2009-09-02

    That's not a tag -- that's a processing instruction.
    http://www.w3.org/TR/REC-xml/#sec-pi

    I'm not sure I agree it should be represented as a tag.