check it out: SED to parse and modify XML element nodes

hope it helps,
cnemo