Ronnie
Ronnie

Reputation: 1073

Get all nodes from an XML document by using XPath

I'm using VB.NET with XPath and would like to get a unique list of all nodes within my XML document, including child nodes.

Is this possible with XPath?

Upvotes: 0

Views: 1043

Answers (1)

JLRishe
JLRishe

Reputation: 101748

To get all elements:

//*

To get all nodes, including the root, processing instructions, comments, text nodes, and attributes:

//node() | //@*

Upvotes: 2

Related Questions