CORE POS - IS4C
The CORE POS front end
|
Public Member Functions | |
xmlData ($str) | |
startTag ($parser, $name, $attr) | |
endTag ($parser, $name) | |
tagData ($parser, $data) | |
get ($tagname) | |
isValid () | |
get_first ($tagname) | |
array_dump () | |
Public Attributes | |
$parser | |
$DATA | |
$curTag | |
$valid | |
A very generic parser class for XML data
xmlData::array_dump | ( | ) |
Export XML content to an array
Debugging method
xmlData::endTag | ( | $parser, | |
$name | |||
) |
xml_parser callback for a closing tag
xmlData::get | ( | $tagname) |
Get a value by tag name
$tagname | the tag name |
xmlData::get_first | ( | $tagname) |
Get a value by tag name
$tagname | the tag name |
This method works a tad more reliably than get().
xmlData::isValid | ( | ) |
Check if at least some xml parsed successfully.
xmlData::startTag | ( | $parser, | |
$name, | |||
$attr | |||
) |
xml_parser callback for an opening tag
xmlData::tagData | ( | $parser, | |
$data | |||
) |
xml_parser callback for data between tags
xmlData::xmlData | ( | $str) |
Constructor Create parser from XML
$str | an XML string |