66<xml-fragment xmlns=
"http://sabre.io/ns">{$this->
getXml()}</xml-fragment>
80 case Reader::ELEMENT :
84 $empty =
$reader->isEmptyElement;
85 while (
$reader->moveToNextAttribute()) {
86 switch (
$reader->namespaceURI) {
90 case 'http://www.w3.org/2000/xmlns/' :
99 $writer->endElement();
108 case Reader::END_ELEMENT :
109 $writer->endElement();
An exception for terminatinating execution or to throw for unit testing.
The XmlFragment element allows you to extract a portion of your xml tree, and get a well-formed xml s...
static xmlDeserialize(Reader $reader)
The deserialize method is called during xml parsing.
xmlSerialize(Writer $writer)
The xmlSerialize metod is called during xml writing.
The Reader class expands upon PHP's built-in XMLReader.
writeAttribute($name, $value)
Writes a new attribute.
startElement($name)
Opens a new element.
This is the XML element interface.