Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Re: XML::Parser Tutorial

by ajt (Prior)
on Sep 30, 2001 at 21:13 UTC ( #115742=note: print w/ replies, xml ) Need Help??

in reply to Re: XML::Parser Tutorial
in thread XML::Parser Tutorial

There is a rule regarding XML (you may hate it), if the XML is not well-formed (all the tags matching up and correctly nested), then the parser should stop fatally.

So if you try and parse a file that isn't well-formed XML you will discover this very quickly as the parser will die. (This is incientally a quick way of figuring out if a file is XML.)

Davorg gives a good example here: Re: Is a file XML?. Basically you eval the parse call to trap the die, then do what you want afterwards.

Comment on Re: Re: XML::Parser Tutorial
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2015-11-27 01:23 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (711 votes), past polls