MarkLogic Connect
MarkLogic Connect Client API Collection
|
Acts as a generic lightweight document interface. More...
#include <DocumentContent.hpp>
Public Member Functions | |
virtual MLCLIENT_API IDocumentNode * | at (const std::string &key) const =0 |
Returns the named element or property underneath the document object. More... | |
Acts as a generic lightweight document interface.
This is the core class in the Document Traversal API. A Document Navigator provides a consistent interface over both JSON and XML document content. This allows, for simple use cases, the developer to not know or care what the underlying content type is of their document.
Using this API the developer does not need to understand or know about the underlying XML or JSON libraries being used by the C++ API. This is therefore a future proofed way of handling document content.
Document Traversal is particularly useful when you don't know or care of the document format. E.g. if dealing with internal MarkLogic document structures from the REST API (like search options), or if parsing search result sets that contain document content.
|
pure virtual |
Returns the named element or property underneath the document object.
key | the string key of the requested object |
Implemented in mlclient::utilities::PugiXmlDocumentNavigator, and mlclient::utilities::CppRestJsonDocumentNavigator.