Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: XML parsing

by Fletch (Bishop)
on Dec 11, 2019 at 17:12 UTC ( [id://11109981]=note: print w/replies, xml ) Need Help??


in reply to XML parsing

Unless you can guarantee a very limited scope of XML input (e.g. something only ever produced by a single source that will always produce the exact same formatting / layout / character encoding / ...) you're just asking for trouble. Even with such constraints your code is going to be "brittle" because a valid XML document that varies from those constraints will break your parsing. And inevitably you'll get said valid-but-unexpected document at just the wrong time.

If you're going to need to handle arbitrary XML you want to use a real parser.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2024-03-28 18:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found