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

XML parsing in perl with Xerces

by srivats (Initiate)
on May 25, 2004 at 15:10 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-03-19 10:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found