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?
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).
| [reply] [d/l] [select] |
|