DataUtils Class
A few data utilities for formatting different data types.
Methods
parseJSON
Object
Parse a string into an Object.
parseXML
XML
static
Parse XML using the DOM. This is required when preloading XML or SVG.
Parameters:
-
text
String
The raw text or XML that is loaded by XHR.
-
type
String
The mime type of the XML. Use "text/xml" for XML, and "image/svg+xml" for SVG parsing.