Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Perl module- XML Search & Replace

by samtregar (Abbot)
on Feb 12, 2009 at 05:56 UTC ( [id://743231]=note: print w/replies, xml ) Need Help??


in reply to Perl module- XML Search & Replace

I've never used it for updating, but XML::LibXML's XPath support is very handy for finding nodes quickly.

Another option would be to use XML::SAX to construct a pipeline reading at one end, modifying as needed in the middle and writing out the new file at the end. That would be an excellent choice if your files could be too large to load into memory all at once.

-sam

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-18 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found