Class cXmlBase
Base XML class
Abstract
Package: Core\XML
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Dominik Ziegler
Located at classes/xml/class.xml.base.php
Package: Core\XML
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Dominik Ziegler
Located at classes/xml/class.xml.base.php
protected
|
#
_createDocument( string $version = '', string $encoding = '' )
Creates a new XML document using DOMDocument. |
public
DOMDocument
|
|
public
|
|
public
string
|
|
public
|
|
protected
|
|
public static
string
|
#
resolvePath( string $path )
Resolves a given path which contains ".." statement for moving up one level in path. |
public static
string
|
|
public static
SimpleXMLElement
|
#
arrayToXml( array $array, SimpleXMLElement $xml = NULL, string $rootTagName = 'root' )
Converts an array to a SimpleXMLElement. Example: array( 'key1' => 'value1', 'key2' => array('value21', 'value22'), 'key3' => array('key31' => 'value31', 'key32' => 'value32') ); |
public static
|
#
xmlStringToArray( string $xmlString )
Converts the given XML string to an array.
Example:
|
public static
boolean
|
|
public static
|
#
xmlToArray( SimpleXMLElement $xml )
Converts the given SimpleXMLElement object to an array.
Example:
|
private static
array
|
#
_cleanArray( array $array )
Cleans an array by replacing all empty arrays with empty strings. Additionally, the function replaces all associative arrays which have only empty values with the array keys of the array. |
protected
|
$_dom
|
#
NULL
|
protected
|
$_xpath
|
#
NULL
|