Skip to content

Commit e799758

Browse files
author
Gonzalo Chumillas
committed
2 parents c053929 + 4547ad6 commit e799758

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@ Methods
2525
#### Create nodes from a given source:
2626
* `DomNode::createFromDocument($doc)`: creates an instance from a Document object
2727
* `DomNode::createFromElement($element)`: creates an instance from a DOMElement object
28+
* `DomNode::createFromNode($node)`: creates an instance from a DomNode object
2829
* `DomNode::createFromString($string)`: creates an instance from a string
2930

3031
#### Basic methods:
32+
* `DomNode::document()`: gets the internal DOMDocument instance
3133
* `DomNode::elements()`: gets internal DOM elements
3234
* `DomNode::name()`: gets the node name
3335
* `DomNode::parent()`: gets the parent node or a `null` value
36+
* `DomNode::root()`: gets the root node
3437
* `DomNode::query($cssSelectors)`: finds nodes using CSS selectors
3538
* `DomNode::xpath($expression)`: finds nodes using XPath expressions
3639
* `DomNode::remove()`: removes the node from the document

0 commit comments

Comments
 (0)