Global

Methods

padNC()

Functions to pad the nc value. E.g. turns '1' in to '00000001'.

Source:

parseDigest(header)

A function to split a Digest auth request header in to its constituent parts.

Parameters:
Name Type Description
header string

the raw http auth header to parse

Source:

textToXML(text)

Converts the specified text to XML using the Browser's built in XML support

Parameters:
Name Type Description
text string

The textual representation of the XML

Source:

xmlToJson(xml)

This returns a simplified JSON structure, equivalent to merging text nodes removing whitespace and merging elements with attributes. Namespaces are also removed. Use xmlToJsonStrict instead if you want an exact JSON representation of an XML document.

Parameters:
Name Type Description
xml string

The XML Document object to conver to JSON

Source:

xmlToJsonSearchResults(xml)

This returns a simplified JSON structure, equivalent to merging text nodes removing whitespace and merging elements with attributes. Namespaces are also removed. Use xmlToJsonStrict instead if you want an exact JSON representation of an XML document.

THIS ONE IS FOR XML RESULTS TO JSON RESULTS

Parameters:
Name Type Description
xml string

The XML Document to transform to JSON

Source:

xmlToJsonStrict(xml)

Strictly converts the supplied XML document to a JSON representation from http://stackoverflow.com/questions/7769829/tool-javascript-to-convert-a-xml-string-to-json

Parameters:
Name Type Description
xml string

The XML Document to convert to JSON

Source:
MLJS - A JavaScript wrapper for the MarkLogic REST API
MarkLogic 2012-2014
Documentation generated by JSDoc 3.2.3-dev on Mon Jul 18 2016 09:14:11 GMT+0100 (BST) using the DocStrap template.