There are Perl modules available on CPAN which can be used to replace data in XML files. One such module, XML::Twig, first parses the XML file, performs the replacements you request, then outputs new XML.
As far as your specific question is concerned, I do not see any "344". Do you care to elaborate?