Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.441 kB
XMLBuilder = require './XMLBuilder'
module.exports.create = (name, xmldec, doctype) ->
if name?
# Create a new document and return the root node for
# chain-building the document tree
new XMLBuilder(name, xmldec, doctype).root()
else
# This path allows for documents without an xml prolog
# It is being kept for compatibility with earlier versions
# but should be deprecated in the future
new XMLBuilder()
Jump to Line
Something went wrong with that request. Please try again.