plendid has asked for the wisdom of the Perl Monks concerning the following question:
I need to change some data in an XML file.
To me this sounds something every programmer would know or need to learn how to do and it would be something that would be explained in numerous books and articles about Perl and XML. However what is usually explained is either how to create or how to parse XML, never how to replace data. Naturally i think i'm a little daft and i'm hoping that i'm not wasting anyone's time by asking this.
Given an XML file called db48844.opf, how would you change package/metadata/x-metadata/meta[\@name='dtb:totalTime']/\@content from 344 to 345?
Is this kind of change considered XSLT?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Changing XML Data
by toolic (Bishop) on Sep 26, 2008 at 17:09 UTC | |
|
Re: Changing XML Data
by runrig (Abbot) on Sep 26, 2008 at 17:59 UTC | |
|
Re: Changing XML Data
by mirod (Canon) on Sep 26, 2008 at 18:45 UTC | |
|
Re: Changing XML Data
by boblawblah (Scribe) on Sep 26, 2008 at 17:08 UTC |