Class XML_doc
Simple class for extracting values from a XML document. Uses a simplified XPath syntax to access the elements. For example: 'root/person/name' would return the value of the 'name' node in 'root/person' node. You have to specify the root node name. Can't access node attributes yet.
XML_doc()
_translateLiteral2NumericEntities($xmlSource, $reverse)
characterData($parser, $data)
endElement($parser, $name)
findLoosePath(\aCombination $aCombination, $aScope) : false
\aCombination
array of keys to test for
false
if nothing was found, or the array with the found keysload(string $filename) : boolean
Load the XML file
string
XML document filename
boolean
true if the load was successfulparse($send) : array
Parse the xml file in an array
array
parsearraystartElement($parser, $name, $attrs)
valueOf($xpath) : String
Extract one node value from the XML document. Use simplified XPath syntax to specify the node. F.e. 'root/test/firstnode'
String
Value of XML node$encoding
$errors : array
$itemname : \help
$parsearray : \parsed
$parser
$xml : string