function getDocument() {
  if (document_ === undefined && typeof document !== 'undefined') {
    document_ = document.implementation.createDocument('', '', null);
  }
  return document_;
}
Get a document that should be used when creating nodes for XML serializations.
@return {Document} The document.