The first thing you need to do is go get the latest version, ie 1.N.5. Available from phpxml's 1.N.X's home at http://www.sourceforge.net/projects/phpxmldb
Use the exportToFile() method function exportToFile($fileName, $absoluteXPath='', $xmlHeader='<?xml version="1.0"?>') http://www.carrubbers.org/scripts/php/xmlphp/doc/PhpXmlDocumentation.php#exportToFile
Use the appendData() method
function appendData($absoluteXPath, $value) Note that the parameter is an "absolute X Path" expression, not just any
old x path expression, so it must address 1 unique node. ie
"/root[1]/records[4]" not "/root/record[4]".
Use the getAttributes method
function getAttributes($absoluteXPath, $attribute =
'')
Note again the absolute X path expression. If you pass an array in,
then it won't work. If you want just the one attribute, then you can
specify it, otherwise you get all the attributes in an array.
Cheers
Nigel
===========================
For the most recent version of phpxml, V1.N.X, and an archive of this list visit: http://www.sourceforge.net/projects/phpxmldb |
Title: RE: [phpXML] Re: xml.php location