XML Data Injection in the response XML from web service

Wedyplelobe

New Member
I need to fix the code below for XML Data Injection.\[code\]DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();DocumentBuilder db = factory.newDocumentBuilder();InputSource inStream = new InputSource();inStream.setCharacterStream(new StringReader(xmlFromWebService));Document doc = db.parse(inStream); // reported at this line by a code audit tooldoc.getDocumentElement().normalize();\[/code\]How to fix it? Do anyone have any suggestions.
 
Back
Top