Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

XML parsing in perl with Xerces

by srivats (Initiate)
on May 25, 2004 at 15:10 UTC ( #356244=perlquestion: print w/replies, xml ) Need Help??

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

Dear All,
I am kind of stuck with handling XML in perl with Xerces.   I have got the parser installed.   I want to how do you manipulate a DOM tree in the memory and use it for processing.   Specifically can some one give Examples for
removeChild appendChild replaceChild
in the existing DOM, which apparently changes the DOM structure in memory.

janitored by ybiC: Remove innapropriate <pre> tags around entire post, minor format tweaks

Replies are listed 'Best First'.
Re: XML parsing in perl with Xerces
by dragonchild (Archbishop) on May 25, 2004 at 15:24 UTC
    The documentation for XML::Xerces is ... lacking. However, all is not lost. A quick search on CPAN finds XML::Xerces::BagOfTricks, which does have good documentation. I'd start there.

    Another question is why you have to use XML::Xerces when XML::Parser is free ... ?

    We are the carpenters and bricklayers of the Information Age.

    Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

    I shouldn't have to say this, but any code, unless otherwise stated, is untested

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://356244]
Approved by Happy-the-monk
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2023-02-09 09:56 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (44 votes). Check out past polls.