메소드 |
설명 |
|
__construct ( string $version = '1.0', string $encoding = 'UTF-8' ) |
|
|
appendElement ( string $name, string $content = '', array $attributes = NULL ) : Element |
Overload appendElement to add a text content and attributes directly. |
|
createAttribute ( string $name, string | null $value = NULL ) : DOMAttr |
If here is a ':' in the attribute name, consider it a namespace prefix
registered on the document. |
|
createElement ( string $name, string | array $content = NULL, array $attributes = NULL ) : Element |
If here is a ':' in the element name, consider it a namespace prefix
registered on the document. |
|
createElementNS ( string $namespaceURI, string $qualifiedName, string | null $content = null ) : Element |
|
|
find ( string $expression ) : Query |
Put the document node into a FluentDOM\Query
and call find() on it. |
|
getElementsByTagName ( string $name ) : DOMNodeList |
Allow getElementsByTagName to use the defined namespaces. |
|
getNamespace ( string $prefix ) : string |
Get the namespace for a given prefix |
|
namespaces ( array $namespaces = NULL ) : array |
Get set the namespaces registered for the document object. |
|
registerNamespace ( string $prefix, string $namespace ) |
register a namespace prefix for the document, it will be used in
createElement and setAttribute |
|
saveHTML ( DOMNode | DOMNodeList | null $context = NULL ) : string |
Allow to save HTML fragments, providing a node list |
|
toHtml ( DOMNode | DOMNodeList | null $context = NULL ) : string |
Allow to save HTML fragments, providing a node list. |
|
toXml ( DOMNode | DOMNodeList | null $context = NULL, integer $options ) : string |
Allow to save XML fragments, providing a node list |
|
xpath ( ) : Xpath |
Generate an xpath instance for the document, if the document of the
xpath instance does not match the document, regenerate it. |
|