code: public XMLElement parse(String name, InputStream in) throws SlickXMLException {
  		try {
  			if (factory == null) {
  				factory = DocumentBuilderFactory.newInstance();
  			}
  			DocumentBuilder builder = factory.newDocumentBuilder();
  			Document doc = builder.parse(in);
  			
  			return new XMLElement(doc.getDocumentElement());
  		} catch (Exception e) {
  			throw new SlickXMLException("Failed to parse document: "+name, e);
  		}
  	}
docs: Parse the XML document that can be read from the given input stream
  
  @param name The name of the document
  @param in The input stream from which the document can be read
  @return The root element of the newly parse document
  @throws SlickXMLException Indicates a failure to parse the XML, most likely the
  XML is malformed in some way.