Methods
__construct()
__construct()
inherited_from |
SimpleXMLElement::__construct() |
__toString()
__toString()
inherited_from |
SimpleXMLElement::__toString() |
addAttribute()
addAttribute()
inherited_from |
SimpleXMLElement::addAttribute() |
Adds a child element to the XML node
addChild($key, string $value, string $namespace) : \Moneybird\SimpleXMLElement
Parameters
$key
$value
string
[optional] If specified, the value of the child element.
$namespace
string
[optional] If specified, the namespace to which the child element belongs.
Returns
Create a child with CDATA value
addChildCData(string $name, string $cdata_text)
Parameters
$name
string
The name of the child element to add.
$cdata_text
string
The CDATA value of the child element.
Add SimpleXMLElement code into a SimpleXMLElement
appendXML(\Moneybird\SimpleXMLElement $append)
asXML()
asXML()
inherited_from |
SimpleXMLElement::asXML() |
attributes()
attributes()
inherited_from |
SimpleXMLElement::attributes() |
children()
children()
inherited_from |
SimpleXMLElement::children() |
count()
count()
inherited_from |
SimpleXMLElement::count() |
getDocNamespaces()
getDocNamespaces()
inherited_from |
SimpleXMLElement::getDocNamespaces() |
getName()
getName()
inherited_from |
SimpleXMLElement::getName() |
getNamespaces()
getNamespaces()
inherited_from |
SimpleXMLElement::getNamespaces() |
registerXPathNamespace()
registerXPathNamespace()
inherited_from |
SimpleXMLElement::registerXPathNamespace() |
saveXML()
saveXML()
inherited_from |
SimpleXMLElement::saveXML() |
xpath()
xpath()
inherited_from |
SimpleXMLElement::xpath() |
Add CDATA text in a node
addCData(string $cdata_text)
Parameters
$cdata_text
string
The CDATA value to add