Hi guys! I’ve found a really useful tutorial (http://www.kirupa.com/web/xml_php_parse_intermediate.htm) on the kirupa site that has helped me out of a tight spot … almost!
I’m working on a server that is NOT php 5 and will not be for several weeks, so simpleXML is not a solution!a
I’m parsing an XML file in order to build an sql insert statement (xml is the ONLY format I can get hold of the data, as supplied by client)
in .xml file …
I’m using the code from the tutorial mentioned above …
I can access the data from the ‘refnumber’ and ‘postcode’ but I don’t know how to find out what the value is in the Per="" attribute
this is the last part of my code from the tutorial:
echo “rentper:” . $property_array[$x]->rentper . "<br />
could anyone PLEASE help me ???