|
MarkLogic Connect
MarkLogic Connect Client API Collection
|
Uses the pugixml library to provide convenience XML parsing functionality. More...
#include <PugiXmlHelper.hpp>
Static Public Member Functions | |
| static MLCLIENT_API ITextDocumentContent * | toDocument (const pugi::xml_document &dc) |
| Converts a pugi::xml_document instance to a MarkLogic C++ API IDocumentContent instance. More... | |
| static MLCLIENT_API ITextDocumentContent * | toDocument (const std::string &content) |
| Converts a std::string instance to a MarkLogic C++ API IDocumentContent instance. More... | |
| static MLCLIENT_API ITextDocumentContent * | toDocument (const Response &resp) |
| Creates an ITextDocumentContent instances from the response. More... | |
| static MLCLIENT_API pugi::xml_document * | fromDocument (const IDocumentContent &dc) |
| Extracts a pugi::xml_document instance from a IDocumentContent object. More... | |
| static MLCLIENT_API pugi::xml_document * | fromResponse (const Response &resp) |
| Extracts a pugi::xml_document instance directly from the Response object. More... | |
Uses the pugixml library to provide convenience XML parsing functionality.
Provides convenience conversions between pugi::xml_document and IDocumentContent objects.
|
static |
Extracts a pugi::xml_document instance from a IDocumentContent object.
This is useful when retrieving a document from MarkLogic Server and then processing the underlying XML.
| InvalidFormatException | If the IDocumentContent does not have the application/xml mime type, or if parsing fails. |
| dc | The IDocumentContent instance to extract the XML content from. |
|
static |
Extracts a pugi::xml_document instance directly from the Response object.
| InvalidFormatException | if the Response does not have a mime type of application/xml, or if a parsing error occurs. |
| resp | The MarkLogic C++ API Response object instance. |
|
static |
Converts a pugi::xml_document instance to a MarkLogic C++ API IDocumentContent instance.
| dc | The pugi::xml_document instance to convert |
|
static |
Converts a std::string instance to a MarkLogic C++ API IDocumentContent instance.
| content | The std::string instance to convert |
| InvalidFormatException | If the string content does not have the application/xml mime type, or if parsing fails. |
|
static |
Creates an ITextDocumentContent instances from the response.
| resp | The MarkLogic C++ API Response object instance. |
| InvalidFormatException | If the Response does not have the application/xml mime type, or if parsing fails. |
1.8.10