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());
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE