Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

XML Modules Comparisons

by toadi (Chaplain)
on Jul 09, 2001 at 12:17 UTC ( #94926=perlquestion: print w/replies, xml ) Need Help??

toadi has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

I'm looking for some advice on differen XML modules out there.

What do I need to do?
I have to parse XML and write XML.
I looked into XML::Simple and XML::Parser. But then my boss came with another one to use: Xerces. This is some apache XML thingie...

Now my question is: Has some experience with this apache module. Is this better then the others? Are there advantages or disadvantages I need to know about it? Most documented modules are the Simple and the parser...




--
My opinions may have changed,
but not the fact that I am right

Update - Masem 2001-07-09 Edited title from "XML Modules an"

Replies are listed 'Best First'.
Re: XML Modules an
by Masem (Monsignor) on Jul 09, 2001 at 15:29 UTC
    In both the case of XML::Simple and XML::Parser, these only deal with the input of XML into your program; you'd still need another module that deals with the output such as XML::AutoWriter; thus your input and output methods may seem very disjointed. While I've not used Xerces, it easy to see that it handles both sides of XML (parsing and generating). The only thing that is of concern is that it is a perl module that sits on top of a C/C++ library; thus, some of the function calling seems to get hairy, and there might be some performance penalties. Xerces appears to be very well documented by the Apache team (I've yet to see anything Apache puts out that's poorly documented), so you'll find just as much info about Xerces as you would with XML::Simple or ::Parser.

    I'd say the best thing to do is to try to write some quick sample application code using both, and decide which one feels 'best' to work with, with all other factors being equal; consider expandibility, code maintainence, and how others may seem the code as part of your decision.


    Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
      Small correction: XML::Simple does have an output method (XMLout) that will take a perl structure and produce XML for it.
      Masem said it all.

      I will consider also to compare support for arr considered modules (mail lists, if any), try to post a question if any arises during pilot test, and compare response.

      If module has strong following, it is likely it will stay around for a while. SO if you invest time to develop any module, you want the module with staying power.

      pmas

      To make errors is human. But to make million errors per second, you need a computer.

Re: XML Modules Comparisons
by Coyote (Deacon) on Jul 09, 2001 at 20:50 UTC
Re: XML Modules Comparisons
by thraxil (Prior) on Jul 10, 2001 at 00:27 UTC

    if close integration with Apache is important, don't overlook axkit or cocoon (warning: cocoon isn't perl.) The built in caching that they both do is nice for performance.

    anders pearson

Re: XML Modules Comparisons
by aardvark (Pilgrim) on Jul 10, 2001 at 08:19 UTC
Re: XML Modules Comparisons
by dingbat (Initiate) on Jul 10, 2001 at 14:04 UTC

    I'd definitely recommend one of the "mainstream" XML tools (for DOM/SAX/XSLT) over another Perl module, even if this involves a Horrible Hack to switch from the Perl environment to the Java world (a "used coffee filter", or whatever they call it) that the DOM was originally coded for. Personally I'm writing XML/XSLT code for M$oft; IE5 and ASP, so I choose to use the MXSML DOM via Win32::OLE even when I'm coding Perl.

    DOMs aren't standardised; there's a lot of space around the W3C spec that is implementation dependent (especially with namespaces). Using something commonplace is good, and Xerces would be a good choice.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2020-12-01 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?