Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: XML parsing

by choroba (Cardinal)
on Dec 11, 2019 at 16:42 UTC ( [id://11109980]=note: print w/replies, xml ) Need Help??


in reply to XML parsing

These are not error messages, but warnings. Are you sure you wanted printf and not just print? Interpolation of user supplied data in a printf template is a security risk, don't do that (see e.g. %n).

Parsing XML with regular expressions is crazy. If the format of the input is not always the same, using an XML-aware module is the only possible path.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2026-01-19 18:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (124 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.