if (nl != null && nl.getLength() > 0) {
    for (int i = 0 ; i < nl.getLength(); i++) {
   
    if(repeat == true){
   
    Element reading = (Element)nl.item(i);
    Element city = (Element)reading.getElementsByTagName("name").item(0);
    String city2 = city.getFirstChild().getNodeValue();
   
    if(city2 == "0000"){
   
    repeat = false;
    break; 
    }


위와 같은 소스를 통해 city2에 0000이란 스트링이 들어오면, 즉,
XML 파싱 당시 name 태그에서 0000을 읽으면, boolean으로 선언된 repeat 값이 false로 변해야 하는데,

전혀 변하질 않네요... ㅡ,.ㅡ

어떻게 해야 xml에서 파싱된 태그 값과 비교하여 분기를 이룰 수 있을까요?