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();
141 $result =
new self($reader->readInnerXml());
The XmlFragment element allows you to extract a portion of your xml tree, and get a well-formed xml s...
writeAttribute($name, $value)
Writes a new attribute.
startElement($name)
Opens a new element.
The Reader class expands upon PHP's built-in XMLReader.
static xmlDeserialize(Reader $reader)
The deserialize method is called during xml parsing.
xmlSerialize(Writer $writer)
The xmlSerialize metod is called during xml writing.
This is the XML element interface.