I've parsing a xml string to this code, but I get "Protocol not found" in the log . this is the code :
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document doc = builder.parse(datas); NodeList nodes = doc.getElementsByTagName("data"); for (int i = 0; i < nodes.getLength(); i++) { Element element = (Element) nodes.item(i); NodeList title = element.getElementsByTagName("content"); Element lines = (Element) title.item(0); } I parse variable datas to my builder , the variable value is :
<values> 3 2 1
very simple ,How can I solve this problem ? what does this error says and how can I fix it ?
No comments:
Post a Comment