Use the xcap_post.sh request to search documents from the command line interface.
As defined in the OMA XDM v2.0 specification, IBM XDMS supports the ability to search within stored documents using XQuery. To perform an XQuery search, the client sends a search document to an OMA XDM v2.0 capable search proxy or directly to IBM XDMS by means of an HTTP POST.
Before performing the search, IBM XDMS extracts the AUID from the search document. If the AUID is supported, it verifies if the XQuery in the search document matches XQuery templates defined by the application usage. If the XQuery matches a defined template, the search is then performed.
It is important to note that URIs used for XCAP and XQuery differ. XQuery URIs have the following form:
XCAP Root/org.openmobilealliance.search
http://myhost.ibm.com:9080/services/