Modifying XML document with Unix Script

Hi,

I have xml documents that I want to change a value in, I can do it using sed in a text document but not the xml document. I have read other posts that allow the change between tags but the part I wish to change is only a small part of data with the tags.

e.g.

<?xml version="1.0" encoding="UTF-8"?><ieXMLDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><MessageHeader Timestamp="2010-06-16T01:39:32.17+00:00" TypeCode="10" RecID="SDM" SenderID="DDD" RefNbr="0001494" VersionNumber="07.00.00"></MessageHeader><MIM105

I want to change the 07.00.00 to 08.00.00

Is this possible ?

Thanks

Right tools for the right job.

XML::Simple - search.cpan.org

What's wrong with (e.g.) ...

sed -i xml.file -e '~s~VersionNumber="07.00.00"~VersionNumber="08.00.00"~g'