Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Accessing mixed content in XML

by Joost (Canon)
on Aug 09, 2005 at 23:18 UTC ( #482465=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://482465]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2021-03-04 19:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (107 votes). Check out past polls.

    Notices?