http://www.perlmonks.org?node_id=482465


in reply to Re: Accessing mixed content in XML
in thread Accessing mixed content in XML

You are right that the data as stated isn't XML, but if the OP is willing to settle for
<argument><img src="test.jpg"/></argument>
(Note the ending slash of the img tag) - you could go ahead with something as simple as XML::Simple, provided you're willing to check the type of the node.

Replies are listed 'Best First'.
Re^3: Accessing mixed content in XML
by samtregar (Abbot) on Aug 10, 2005 at 03:11 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