Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: best xml parser to use

by ftumsh (Scribe)
on Jul 06, 2006 at 19:03 UTC ( #559644=note: print w/replies, xml ) Need Help??


in reply to Re: best xml parser to use
in thread best xml parser to use

heh :)
I normally always use xml::twig, but I don't actually know the format of xml so I can't in this case. I've been googling and I'm going to try xml::sax.

I appear to have only got xml::libxml::sax, is this good enough? the pod mention it might not be any good for production use. What others could I use?

Replies are listed 'Best First'.
Re^3: best xml parser to use
by rvosa (Curate) on Jul 07, 2006 at 03:33 UTC
    What do you mean by "I don't actually know the format of xml"? How will switching parsers (though, technically, XML::Twig is a front-end, not a parser itself) fix that?
      XML Twig saves on memory by only reading in bits of the xml. To know what bits you are interested in you have to tell it. As I don't know what tags will be used for a given document I can't do that so it would load the entire xml into memory which negates the point of Twig.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://559644]
help
Chatterbox?
[marto]: good grief, that's not fun, glad to hear all is as well as could be :)
[Corion]: marto: Yeah - their mother picked all three of them up at the kindergarden to then go to the hospital, and all three of them were well behaved, and all also were quite obedient when they came home, so they recognized the situation
[Corion]: Nice to see that the kids have some understanding of important things that happen and the appropriate behaviour :)

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2016-12-08 09:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (137 votes). Check out past polls.