Lines Matching refs:this

7  * COPYING  file in the root directory of this source tree.
88 if (!$this->isXmlExtensionLoaded()) {
100 | LIBXML_NSCLEAN // Remove redundant namespace declarations - for whatever reason, the formatting does not work if this is set
106 // Options that cause the process to hang if this is not for a html file
126 $this->domDocument = new DOMDocument('1.0', 'UTF-8');
128 $this->mandatoryFormatConfigBeforeLoading();
131 $text = $this->processTextBeforeLoading($text);
145 $result = $this->domDocument->loadXML($text, $options);
151 * While malformed HTML should load successfully, this function may generate E_WARNING errors
152 * @deprecated as we try to be XHTML compliantXML but yeah this is not always possible
165 $result = $this->domDocument->loadHTML($htmlEntityEncoded, $options);
199 $message = "Xml does not allow boolean attribute (ie without any value). If you skip this error, you will get a general attribute constructing error as next error. Load as HTML.";
293 return $this->domDocument;
304 if ($this->isXmlExtensionLoaded()) {
305 $this->domDocument->documentElement->setAttribute($name, $value);
316 $value = $this->domDocument->documentElement->getAttribute($name);
325 return $this->toXml($element);
332 $element = $this->getDomDocument()->documentElement;
338 $xmlText = $this->getDomDocument()->saveXML(
405 $nodes = $this->xpath("//*[namespace-uri()='$namespaceUri']");
415 $nodes = $this->xpath("//@*[namespace-uri()='$namespaceUri']");
428 $xpath = new DOMXPath($this->getDomDocument());
429 $DOMNodeList = $xpath->query("namespace::*", $this->getDomDocument()->ownerDocument);
447 $xpath = new DOMXPath($this->getDomDocument());
452 $DOMNodeList = $xpath->query('namespace::*', $this->getDomDocument()->ownerDocument);
475 * Note that this is possible to do evaluation to return a string instead
482 if (!isset($this->domXpath)) {
484 $this->domXpath = new DOMXPath($this->getDomDocument());
491 foreach ($this->getNamespaces() as $prefix => $namespaceUri) {
497 $result = $this->domXpath->registerNamespace($prefix, $namespaceUri);
506 $contextNode = $this->domDocument;
508 $domList = $this->domXpath->query($query, $contextNode);
522 // $result = $this->getXmlDom()->documentElement->removeAttribute($attribute);
524 for ($i = 0; $i < $this->getDomDocument()->documentElement->attributes->length; $i++) {
525 if ($this->getDomDocument()->documentElement->attributes[$i]->name == $attribute) {
526 $result = $this->getDomDocument()->documentElement->removeAttributeNode($this->getDomDocument()->documentElement->attributes[$i]);
539 for ($i = 0; $i < $this->getDomDocument()->documentElement->childNodes->length; $i++) {
540 $childNode = &$this->getDomDocument()->documentElement->childNodes[$i];
542 $result = $this->getDomDocument()->documentElement->removeChild($childNode);
589 XmlSystems::diffNode($this->getDomDocument(), $rightDocument->getDomDocument(), $error);
598 * $this->xmlDom->preserveWhiteSpace = false;
606 $this->domDocument->formatOutput = true;
607 return $this->toXml($element);
627 * TODO: delete this code when the test pass
639 $element = $this->domDocument->documentElement;
642 return $this->toXmlFormatted($element);
673 // is equivalent to $this->xmlDom->preserveWhiteSpace = true;
674 $this->domDocument->preserveWhiteSpace = false;
704 $domNodeList = $this->querySelectorAll($selector);
718 $xpath = $this->cssSelectorToXpath($selector);
719 $domNodeList = $this->xpath($xpath);
723 $domNodes[] = new XmlElement($domNode, $this);
756 return XmlElement::create($this->getDomDocument()->documentElement, $this);
761 return $this->domDocument->saveHTML();
769 $element = $this->domDocument->createElement($localName);
770 return XmlElement::create($element, $this);
779 $domList = $this->xpath($xpath);