I have an XML file that looks something like this:
<product> <modelNumber>Data</modelNumber> <salePrice>Data</salePrice> </product> <product> <modelNumber>Data</modelNumber> <salePrice>Data</salePrice> </product>
Is there an easy way to change tag names, something else, for example, model, price.
In fact, I have a bunch of XML files containing similar data, but in different formats, so I'm looking for an easy way to parse an XML file, change certain tag names and write a new XML file with the modified tags.
xml php
Ryan mccullagh
source share