src/main/java/org/eiichiro/bootleg/xml/XMLRequest.java
public void from(WebContext context) {
		DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
		factory.setNamespaceAware(true);
		
		try {
			DocumentBuilder builder = factory.newDocumentBuilder();
			Document document = builder.parse(new InputSource(context.request().getReader()));
			node = document.getDocumentElement();
		} catch (Exception e) {
			logger.warn("Cannot parse XML document into DOM object", e);
			throw new UncheckedException(e);
		}
		
		super.from(context);
	}
public void from(WebContext context) {
		DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
		factory.setNamespaceAware(true);
		
		try {
			DocumentBuilder builder = factory.newDocumentBuilder();
			Document document = builder.parse(new InputSource(context.request().getReader()));
			node = document.getDocumentElement();
		} catch (Exception e) {
			logger.warn("Cannot parse XML document into DOM object", e);
			throw new UncheckedException(e);
		}
		
		super.from(context);
	}
public void from ( WebContext context ) { DocumentBuilderFactory factory = DocumentBuilderFactory . newInstance ( ) ; factory . setNamespaceAware ( true ) ; try { DocumentBuilder builder = factory . newDocumentBuilder ( ) ; Document document = builder . parse ( new InputSource ( context . request ( ) . getReader ( ) ) ) ; node = document . getDocumentElement ( ) ; } catch ( Exception e ) { logger . warn ( "Cannot parse XML document into DOM object" , e ) ; throw new UncheckedException ( e ) ; } super . from ( context ) ; }
Constructs a new {@code XMLRequest} from the current {@code WebContext}.

@param context The current {@code WebContext}.
Constructs a new { @code XMLRequest } from the current { @code WebContext } .