if getTextValue() recieves a Element
and finds a node value (text) why would it not be found in str?
\
pubic String getTextValue(Element n){
NodeList nl=n.getChildNodes();
for (int i=-; i<nl.getLength();i++){
if(nl.item(i).CDATA_SECTION_NODE>0){
String value=nl.item(i).getNodeValue();//sys.out= good text
}
}
return value;
}
t=(Element) r.getNextSibling();
str=getTextValue(t);
System.out.println(" "+str);//null