Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: Error decoding XML

by ikegami (Patriarch)
on Jan 24, 2005 at 17:31 UTC ( [id://424635]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Error decoding XML
in thread Error decoding XML

It'll work, but not as you wish it to, because your XML is broken as tinita pointed out.

Changing
    my $xml = '<hdsso><hpid>-----...';
to
    my $xml = '<hdsso><hpid>-----...';
will not only fix your problem you asked about, it'll fix problems you haven't encountered yet. You say you're getting the data from someone else, so you'll have to convince this person to give you XML (he's currently not giving you XML) or try to fix it yourself with regexps (but you can never do a perfect job when fixing broken escapes).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-16 12:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found