T
Tjerk Wolterink
I'm wondering what is faster in a big document
something like:
//element
or this absolute path:
/parent/parent2/parent3/element
?
What is more efficient?
I came to this question when reading this:
http://dom4j.org/benchmarks/xpath/index.html
Especially this sentence:
The syntax of Xpath statements must be chosen carefully. Contrary to
some belief, and of the topology of our XML format, using /*/* or // was
most efficient compared to the absolute path /ItemResultSet/Item
something like:
//element
or this absolute path:
/parent/parent2/parent3/element
?
What is more efficient?
I came to this question when reading this:
http://dom4j.org/benchmarks/xpath/index.html
Especially this sentence:
The syntax of Xpath statements must be chosen carefully. Contrary to
some belief, and of the topology of our XML format, using /*/* or // was
most efficient compared to the absolute path /ItemResultSet/Item