in reply to Accessing mixed content in XML

I gather this isn't what you want to hear, but you'll have to escape that HTML to get it into XML. For example:

<argument>&lt;img src="test.jpg"&gt;</argument>

If you don't then you don't have valid XML and no XML parser I've ever seen is going to parse the file successfully.

-sam

Replies are listed 'Best First'.
Re^2: Accessing mixed content in XML
by Joost (Canon) on Aug 09, 2005 at 23:18 UTC
      Sure, that works fine for the tiny example shown, but it won't work in the arbitrary case. HTML cannot be trivially transformed into XML in many cases.

      -sam

Re^2: Accessing mixed content in XML
by anthski (Scribe) on Aug 09, 2005 at 23:10 UTC
    Sam,

    I'm quite happy to hear that suggestion as it's easily implemented and works perfectly for what I want to do.

    Thanks for your help. Very much appreciated.