DOMElement::getAttribute

(PHP 5, PHP 7) Returns value of attribute public string DOMElement::getAttribute ( string $name ) Gets the value of the attribute with name name for the current node. Parameters: name The name of the attribute. Returns: The value of the attribute, or an empty string if no attribute with the given name is found.

DOMElement::__construct

(PHP 5, PHP 7) Creates a new DOMElement object public DOMElement::__construct ( string $name [, string $value [, string $namespaceURI ]] ) Creates a new DOMElement object. This object is read only. It may be appended to a document, but additional nodes may not be appended to this node until the node is associated with a document. To create a writeable node, use DOMDocument::createElement or DOMDocument::createElementNS.

DOMDocumentFragment::appendXML

(PHP 5 >= 5.1.0, PHP 7) Append raw XML data public bool DOMDocumentFragment::appendXML ( string $data ) Appends raw XML data to a DOMDocumentFragment. This method is not part of the DOM standard. It was created as a simpler approach for appending an XML DocumentFragment in a DOMDocument. If you want to stick to the standards, you will have to create a temporary DOMDocument with a dummy root and then loop through the c

DOMDocument::xinclude

(PHP 5, PHP 7) Substitutes XIncludes in a DOMDocument Object public int DOMDocument::xinclude ([ int $options ] ) This method substitutes ยป XIncludes in a DOMDocument object. Note: Due to libxml2 automatically resolving entities, this method will produce unexpected results if the included XML file have an attached DTD. Parameters: options libxml parameters. Availab

DOMDocument::validate

(PHP 5, PHP 7) Validates the document based on its DTD public bool DOMDocument::validate ( void ) Validates the document based on its DTD. You can also use the validateOnParse property of DOMDocument to make a DTD validation. Returns: Returns TRUE on success or FALSE on failure. If the document have no DTD attached, this method will return FALSE.

DOMDocument::schemaValidateSource

(PHP 5, PHP 7) Validates a document based on a schema public bool DOMDocument::schemaValidateSource ( string $source [, int $flags ] ) Validates a document based on a schema defined in the given string. Parameters: source A string containing the schema. flags A bitmask of Libxml schema validation flags. Currently the only supported va

DOMDocument::schemaValidate

(PHP 5, PHP 7) Validates a document based on a schema public bool DOMDocument::schemaValidate ( string $filename [, int $flags ] ) Validates a document based on the given schema file. Parameters: filename The path to the schema. flags A bitmask of Libxml schema validation flags. Currently the only supported value is LIBXML_SCHEMA_CREA

DOMDocument::saveXML

(PHP 5, PHP 7) Dumps the internal XML tree back into a string public string DOMDocument::saveXML ([ DOMNode $node [, int $options ]] ) Creates an XML document from the DOM representation. This function is usually called after building a new dom document from scratch as in the example below. Parameters: node Use this parameter to output only a specific node without XML d

DOMDocument::saveHTMLFile

(PHP 5, PHP 7) Dumps the internal document into a file using HTML formatting public int DOMDocument::saveHTMLFile ( string $filename ) Creates an HTML document from the DOM representation. This function is usually called after building a new dom document from scratch as in the example below. Parameters: filename The path to the saved HTML document. R

DOMDocument::saveHTML

(PHP 5, PHP 7) Dumps the internal document into a string using HTML formatting public string DOMDocument::saveHTML ([ DOMNode $node = NULL ] ) Creates an HTML document from the DOM representation. This function is usually called after building a new dom document from scratch as in the example below. Parameters: node Optional parameter to output a subset of the document