13class Chunk implements \Serializable
43 $this->localName =
$xml->localName;
44 $this->namespaceURI =
$xml->namespaceURI;
46 $this->xml = Utils::copyElement(
$xml);
66 public function toXML(\DOMElement $parent)
68 return Utils::copyElement($this->xml, $parent);
78 return serialize($this->xml->ownerDocument->saveXML($this->xml));
89 $this->xml = $doc->documentElement;
90 $this->localName = $this->xml->localName;
91 $this->namespaceURI = $this->xml->namespaceURI;
An exception for terminatinating execution or to throw for unit testing.
unserialize($serialized)
Un-serialize this XML chunk.
toXML(\DOMElement $parent)
Append this XML element to a different XML element.
__construct(\DOMElement $xml)
Create a XMLChunk from a copy of the given \DOMElement.
getXML()
Get this \DOMElement.
serialize()
Serialize this XML chunk.