Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: XML::Parser and Invalid XML

by mfriedman (Monk)
on Jul 17, 2002 at 22:45 UTC ( #182624=note: print w/replies, xml ) Need Help??

in reply to XML::Parser and Invalid XML

The problem is, no XML statement can begin with a number... so does anyone know how I can get XML::Parser to let that slide?

XML::Parser will not let it slide, because that is not valid XML. XML::Parser (expat, really) conforms extremely tightly to the XML standard. You need to get your data source to fix it, or if that's not possible perhaps run some regexes on the XML file before running through the parser.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2021-06-18 10:51 GMT
Find Nodes?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)

    Results (89 votes). Check out past polls.