toXML() публичный Метод

Convert this Keywords to XML.
public toXML ( DOMElement $parent ) : DOMElement
$parent DOMElement The element we should append this Keywords to.
Результат DOMElement
Пример #1
0
 /**
  * Keyword may not contain a "+", Exception expected.
  */
 public function testKeywordWithPlusSignThrowsException()
 {
     $keywords = new Keywords();
     $keywords->lang = "en";
     $keywords->Keywords = array("csharp", "pascal", "c++");
     $document = DOMDocumentFactory::fromString('<root />');
     $this->setExpectedException('Exception', 'Keywords may not contain a "+" character');
     $xml = $keywords->toXML($document->firstChild);
 }