contenido\classes\class.xml.php
Project:
Contenido Content Management System
Description: Class XML_doc
Requirements:
- Author
- Jan Lengowski
- Con_php_req
- 5.0
- Copyright
- four for business AG
- License
- http://www.contenido.org/license/LIZENZ.txt
- Link
- http://www.4fb.de
- Link
- http://www.contenido.org
- Package
- 4fb_XML
- Since
- file available since contenido release <= 4.6
{@internal
created unknown
modified unknown, Martin Horwath
modified 2008-06-30, Dominik Ziegler, add security fix $Id: class.xml.php 1072 2009-10-14 07:13:07Z oldperl $: }} - Version
- 0.9.7
\XML_doc
Package: Default

Parameters
Returns
Parameters
Returns
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.
Properties
Methods


_translateLiteral2NumericEntities( $xmlSource, $reverse = FALSE) : void
Parameters
Name | Type | Description |
---|---|---|
$xmlSource | ||
$reverse |


findLoosePath(\aCombination $aCombination, $aScope = true) : false
findLoosePath: Finds a path in the XML array which ends with the given keys
Parameters
Returns
Name | Type | Description |
---|---|---|
$aCombination | \aCombination | array of keys to test for |
$aScope |
Type | Description |
---|---|
false | if nothing was found, or the array with the found keys |


load(string $filename) : boolean
load()
Load the XML file
Name | Type | Description |
---|---|---|
$filename | string | XML document filename |
Type | Description |
---|---|
boolean | true if the load was successful |


parse( $send = true) : array
parse()
Parse the xml file in an array
Name | Type | Description |
---|---|---|
$send |
Type | Description |
---|---|
array | parsearray |