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
-
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
-
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
-
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