Reputation: 774
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?
Upvotes: 3
Views: 177
Reputation: 336
You will want to define your namespaces on the Http Server. See http://docs.marklogic.com/guide/admin/namespaces for more details.
Upvotes: 4