Error: Unexpected: could not determine node order
at nodeOrder (/test/node_modules/xpath/xpath.js:3021:11)
at AVLTree.add (/test/node_modules/xpath/xpath.js:3029:10)
at XNodeSet.buildTree (/test/node_modules/xpath/xpath.js:3147:23)
at XNodeSet.toArray (/test/node_modules/xpath/xpath.js:3188:23)
at new XPathResult (/test/node_modules/xpath/xpath.js:4391:20)
at XPathExpression.evaluate (/test/node_modules/xpath/xpath.js:4316:9)
at Object.exports.selectWithResolver (/test/node_modules/xpath/xpath.js:4738:26)
at Object.exports.select (/test/node_modules/xpath/xpath.js:4718:17)
at Object.<anonymous> (/test/test.js:6:21)
at Module._compile (module.js:652:30)
The issue is that the function nodeOrder is not able to determine in which order it should return multiple NamespaceNodes, and therefore throws an Error.
I'm sorry that it has taken so long to fix this and I imagine the fix is probably no longer relevant to you, but it is fixed now in version 0.0.34. Thank you for reporting it.
Throws
The issue is that the function
nodeOrder
is not able to determine in which order it should return multiple NamespaceNodes, and therefore throws an Error.