I have this code to write a xml
but when validating the statement if
does not take it into account. Does anyone know why?
How to validate a xml:
tag
for(int i=0; i<nodeList.size(); i++){
if(nodeList.get(i).toString() == "</cfdi:Comprobante>"){
System.out.println("hola");
}
}