Functiondojox.data.dom.createDocument

dojo.require("dojox.data.dom");
defined in dojox/data/dom.js

cross-browser implementation of creating an XML document object.

Usage

function (/*String?*/ str, /*String?*/ mimetype) (view source)
parametertypedescription
strStringOptional. Optional text to create the document from. If not provided, an empty XML document will be created.
mimetypeStringOptional. Optional mimetype of the text. Typically, this is text/xml. Will be defaulted to text/xml if not provided.