V
vunet.us
Hello experts,
I have problems converting XML element or nodes to string as shown
below:
String newXML = null;
NodeList nodes = document.getElementsByTagName("Car");
for(int i=0; i<nodes.getLength(); i++){
Element e = (Element) nodes.item(i);
String s = e.getAttribute("Value");
if(e.equals("123")){
newXML = //HOW TO ADD "Car" NODE AS STRING?
}
return newXML;
}
I have problems converting XML element or nodes to string as shown
below:
String newXML = null;
NodeList nodes = document.getElementsByTagName("Car");
for(int i=0; i<nodes.getLength(); i++){
Element e = (Element) nodes.item(i);
String s = e.getAttribute("Value");
if(e.equals("123")){
newXML = //HOW TO ADD "Car" NODE AS STRING?
}
return newXML;
}