xml() public method

Dumps the node into a string using XML formatting.
public xml ( integer $options ) : string
$options integer Additional options
return string The node XML
Example #1
0
 public function testXml()
 {
     $element = new Element('span', 'hello');
     $prolog = '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
     $this->assertEquals($prolog . '<span>hello</span>', $element->xml());
 }