Question: This line of code works on a different computer. However, it failed on mine. It might be an import or setting issue. I just dont

This line of code works on a different computer. However, it failed on mine. It might be an import or setting issue. I just dont know what it might be. Can someone give advice? It breaks on line 162.

{

159 DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder();

160 InputSource is = new InputSource();

161 is.setCharacterStream(new StringReader(strXMLResponse));

162 Document doc = db.parse(is);

163 nodes = doc.getElementsByTagName("Value");

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!