Skip to content

Commit bc1d004

Browse files
committed
Update readme.md
1 parent 01220cd commit bc1d004

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $reader->registerCallback("by-node-name", function($reader) {
1414
/* ... */
1515
});
1616
$reader->registerCallback("/by/xpath/query", function($reader) {
17-
$element = $reader->expandSimpleXml(); // copy of the current node as a SimpleXMLElement object
17+
$element = $reader->expandDomDocument(); // copy of the current node as a DOMNode object
1818
$attributes = $element->attributes(); // read element attributes
1919
/* ... */
2020
});

0 commit comments

Comments
 (0)