A Javascript function using VTD-XML to provide an efficient way to read an XML file and modify the contents.