code: public static Document createDocument() {
  		try {
  			DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance();
  			fact.setNamespaceAware(true);
  			DocumentBuilder db = fact.newDocumentBuilder();
  			return db.newDocument();
  		} catch (ParserConfigurationException e) {
  			//will probably never be thrown because we're not doing anything fancy with the configuration
  			throw new RuntimeException(e);
  		}
  	}
docs: Creates a new XML document.
  @return the XML document