in reply to Re^2: Pasing an XML file to generate a certain output.
in thread Pasing an XML file to generate a certain output.

If i entirely remove the comment it runs fine. i'm playng with comments => "process" as the authors said, but with no luck.

Hmm, xml parsers are required to reject invalid xml -- comments inside tags are invalid xml :)

I wouldn't play anymore :D

  • Comment on Re^3: Pasing an XML file to generate a certain output.

Replies are listed 'Best First'.
Re^4: Pasing an XML file to generate a certain output.
by Discipulus (Canon) on May 13, 2015 at 10:58 UTC
    Ah ok thanks, it appeared to me as a very bad thing having a comment inside a tag, but i was not aware it was not valid XML.

    L*
    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
Re^4: Pasing an XML file to generate a certain output.
by Saner (Novice) on May 13, 2015 at 11:54 UTC
    Hmmm,

    What if I remove all the rubbish I dont need from the file, how would I parse it then.
    http://paste.ubuntu.com/11112412/
      The closing > is now missing for opening channel tags.
      <channel id="9601.dvb.guide" number="101"> <display-name>RTE One</display-name> ^ </channel> | Here
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ