nodes (DOMDocument - JavaScript)

Gets all elements and attributes that match an XPath, or gets all elements and attributes that match an XPath using a namespace.

Defined in

DOMDocument

Syntax

node(xpath:string) : any[]

node(xpath:string, selectionNS:NamespaceContext) : any[]