Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Error decoding XML

by Hammy (Scribe)
on Jan 24, 2005 at 17:23 UTC ( [id://424632]=note: print w/replies, xml ) Need Help??


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

Does this mean if I put the string to start my XML, it should work OK? I tried just putting that string at the beginning and it still gave me a file does not exist error. The data I am getting I am receiving from someone else. I can add data to it or remove data from it, but I can not change the structure of the data.

This is a hosted box so there was probably a version upgrade recently (only explination I can come up with). Any suggestions on what else I should use?

Replies are listed 'Best First'.
Re^4: Error decoding XML
by ikegami (Patriarch) on Jan 24, 2005 at 17:31 UTC

    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://424632]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found