Lines Matching defs:document
24 private XmlDocument $document;
29 * @param XmlDocument $document - the document
31 public function __construct(DOMElement $domElement, XmlDocument $document)
34 $this->document = $document;
65 return new XmlElement($firstChild, $this->document);
76 $childNodes[] = new XmlElement($childNode, $this->document);
92 $childNodes[] = implode('', XmlElement::create($childNode, $this->document)->getChildrenNodeTextValues());
104 $xpath = $this->document->cssSelectorToXpath($selector);
106 foreach ($this->document->xpath($xpath, $this->domElement) as $child) {
108 $nodes[] = new XmlElement($child, $this->document);
117 return $this->document->toXmlNormalized($this->domElement);
129 throw new ExceptionRuntime("Not able to delete the attribute $attributeName of the node element {$this->domElement->tagName} in the Xml document");
227 // import/copy item from external document to internal document
262 return $this->document;
279 * Utility to change the owner document
338 return new XmlElement($parentNode, $this->document);