Re: dom java xml getAttributeByID



i found the answer.....

for (int i = 0; i < Cycle.getLength(); i++) {

org.w3c.dom.NamedNodeMap ggg =
((org.w3c.dom.Element)Cycle.item(i)).getAttributes();

String gggg = ggg.getNamedItem("ID").toString();
int index =gggg.indexOf("Pete");
if ( index == -1){
not found
}
else{found}

Thanks

Rafael Amar

.