XmlDocument
Table of Contents
Properties
-
$data
: mixed
-
$dataNodeName
: string
-
$output
: SimpleXMLElement
-
$rootNodeName
: string
-
$unknownNodeName
: string
Methods
-
__construct()
: mixed
-
build()
: string
-
toXml()
: string
-
buildElement()
: void
-
getScalarElement()
: string
$data
read-only
private
mixed
$data
$dataNodeName
read-only
private
string
$dataNodeName
= 'item'
$output
private
SimpleXMLElement
$output
$rootNodeName
read-only
private
string
$rootNodeName
= 'data'
$unknownNodeName
read-only
private
string
$unknownNodeName
= 'unknownNode'
__construct()
public
__construct(mixed $data[, string $rootNodeName = 'data' ][, string $dataNodeName = 'item' ][, string $unknownNodeName = 'unknownNode' ]) : mixed
Parameters
-
$data
: mixed
-
-
$rootNodeName
: string
= 'data'
-
-
$dataNodeName
: string
= 'item'
-
-
$unknownNodeName
: string
= 'unknownNode'
-
build()
public
build() : string
toXml()
public
static toXml(mixed $data[, string $rootNodeName = 'data' ][, string $dataNodeName = 'item' ][, string $unknownNodeName = 'unknownNode' ]) : string
Parameters
-
$data
: mixed
-
-
$rootNodeName
: string
= 'data'
-
-
$dataNodeName
: string
= 'item'
-
-
$unknownNodeName
: string
= 'unknownNode'
-
buildElement()
private
buildElement(mixed $data, SimpleXMLElement $parent[, string $nodeName = null ]) : void
Parameters
-
$data
: mixed
-
-
$parent
: SimpleXMLElement
-
-
$nodeName
: string
= null
-
getScalarElement()
private
static getScalarElement(mixed $data) : string
Parameters
-
$data
: mixed
-