Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Perl module- XML Search & Replace

by samtregar (Abbot)
on Feb 12, 2009 at 05:56 UTC ( #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
Node Status?
node history
Node Type: note [id://743231]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2020-07-05 21:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?