Code example for DefaultHandler

0
 
        String xmlString = "<?xml version=\"1.0\"?>" +
                "<!DOCTYPE foo SYSTEM \"C:/test\"><test>&foo;</test>"; // Tainted input 
 
        InputStream is = new ByteArrayInputStream(xmlString.getBytes());
        receiveXMLStream(is, new DefaultHandler());
    } 
}