MarkLogic 10 Product Documentation
Document.documentFormat

Document.documentFormat as String

Summary

The format of the document node, "JSON", "XML", "TEXT", or "BINARY"

Example

cts.doc('example.xml').documentFormat;

// Returns: 'XML'
Powered by MarkLogic Server | Terms of Use | Privacy Policy