Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: xml parsers: do I need one?

by Elian (Parson)
on Aug 28, 2003 at 14:18 UTC ( #287370=note: print w/replies, xml ) Need Help??


in reply to xml parsers: do I need one?

If you've full control of both ends, then no, you don't need a real XML parser.

But, then again, if you have full control of both ends, do you even need XML in the first place?

Replies are listed 'Best First'.
Re: Re: xml parsers: do I need one?
by regan (Sexton) on Aug 28, 2003 at 14:36 UTC
    We have full control of both ends. Changing from XML to something different isn't going to happen. We use java's DOM parser to read the xml file in our main application. It takes about 2-3 minutes to parse everything using java. It took 35 minutes to parse the xml file with the Perl::XML parser. Is it that much slower, or was I just doing something really wrong?
      It takes about 2-3 minutes to parse everything using java.It took 35 minutes to parse the xml file with the Perl::XML parser

      35 minutes for a 3.3 MB file?? Yes, it sounds as if something is not right there. Or your computer has 24k of memory :)
      But that is difficult to say without the code or the DTD.
      --
      bm

      Sounds fishy. Last year I wrote some code that used XML::Parser to parse and munge XML files of about 20 MB apiece, and on my not-particularly-new notebook it didn't take anywhere near that long. I can't remember if runtime was closer to 30 seconds or 3 minutes, but it certainly wasn't long enough that you'd walk away from your desk and not be finished when you got back.

              $perlmonks{seattlejohn} = 'John Clyman';

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2021-08-05 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)








    Results (44 votes). Check out past polls.

    Notices?