All pastes #13884 Raw Edit

Stuff

public text v1 · immutable
#13884 ·published 2005-06-10 10:51 UTC
rendered paste body
ByteArrayInputStream content = new ByteArrayInputStream(a_Request.getRawContent());
            	
if(content != null)
{
//  Build the document with SAX and Xerces, no validation
    SAXBuilder builder = new SAXBuilder();
    // Create the document
    Document doc = builder.build(content);

    // Output the document, use standard formatter
    XMLOutputter fmt = new XMLOutputter();
    fmt.output(doc, System.out);
}