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

Re^2: Getting start and end xml tags

by corfuitl (Sexton)
on May 28, 2020 at 13:00 UTC ( #11117406=note: print w/replies, xml ) Need Help??


in reply to Re: Getting start and end xml tags
in thread Getting start and end xml tags

Hi

Thank you for your time. I don't have experience on these modules, so this is why I haven't used in my code :(

Replies are listed 'Best First'.
Re^3: Getting start and end xml tags
by Corion (Pope) on May 28, 2020 at 13:05 UTC

    It sounds as if now is a good time to familiarize yourself with one of these modules.

Re^3: Getting start and end xml tags
by perlfan (Vicar) on May 28, 2020 at 13:35 UTC
    When I inevitably hit the omg I gotta parse some XML* stage, I found it easier to understand an event-based parser, but you may not. It was a long time ago, but I think the module I found easiest to work with and understand was XML::Simple (oh but don't use that either!) (SAX (wikipedia) based parsing), which is event-based (found a start tag!, etc), but I can't really remember since it's been a very long time (circa 2004**); I think the book I bought at the time was, Perl and XML.

    * I am a Perl programming, Jeb! Not a Java monkey!

    ** Yes, everyone hits this stage as they're trucking along. It's a good sign. But please listen to those wiser than you (not me, I mean the others telling you to not parse XML with regexes)

        I delinked XML::Simple (OH but don't use it!) it, but I can't change the fact that I used it in 2004. Sorry, chef.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2021-03-07 03:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (119 votes). Check out past polls.

    Notices?