Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: emdash problems with XML::Simple

by psini (Deacon)
on Aug 26, 2010 at 18:53 UTC ( [id://857543]=note: print w/replies, xml ) Need Help??


in reply to emdash problems with XML::Simple

I tried your files with the following results:

Saving the files "as is", I got an error "not well-formed (invalid token) at line 4, column 20, byte 153 at /usr/share/perl5/XML/Simple.pm line 362"

Saving the XML file as an UTF-8 file (with BOM), I get an error because the last line should be "</table>" not "</ettx>"

Correcting this I get no error, and the output "$VAR1 = undef;"

Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."

Replies are listed 'Best First'.
Re^2: emdash problems with XML::Simple
by nglenn (Beadle) on Aug 26, 2010 at 19:51 UTC

    I messed up the xml in the post. This still gives me the same error:

    <?xml version="1.0" encoding="utf-8" standalone="yes"?> <level type="b"> <map abrv="JS—M"/> <map abrv="JS—K"/> </level>

    I saved it in a file as UTF-8 with signature.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-25 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found