I am using cts.pathRangeQuery on an xml document like -
<container xmlns:c="http://example.com/ns/core" xmlns:d="http://example.com/ns/data" xmlns="http://example.com/ns/core">
<c:domain>
<d:id>http://example.com/xyz/no-data</d:id>
</c:domain>
</container>
I want to use a path range query on /c:domain/d:id
, something like this -
cts.pathRangeQuery("/c:domain/d:id", "=", "some-id");
But I don't know how to take care of the XML namespaces in this case. Any suggestions on how to do this in JavaScript?