This is what I would like to parse:\[code\]<?xml version="1.0" encoding="utf-8"?><UserLogin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://services.syncrowd.com/"> <Authenticated>false</Authenticated> <UserId>0</UserId> <StatusMessage>Incorrect email or password</StatusMessage></UserLogin>\[/code\]There are no repetitive nodes. Just the three elements: Authenticated, UserId, and StatusMessageI use SAX parsing for another xml that has multiple nodes with sub elements, and it works fine there, but when I try to implement the same structure for this simpler example, I get nada, zero.Here are my two files that I use for parsing:LoginItem.java\[code\]package loginXML;public class LoginItem { String Authenticated = null; String UserId = null; public void setLoginAuthenticated(String Authenticated){this.Authenticated = Authenticated;} public void setLoginUserId(String UserId){this.UserId = UserId;} public String getLoginAuthenticated(){return Authenticated;} public String getLoginUserId(){return UserId;}}\[/code\]And this is the handler (LoginItemXmlHandler):\[code\]package loginXML;import java.util.ArrayList;import org.xml.sax.Attributes;import org.xml.sax.SAXException;import org.xml.sax.helpers.DefaultHandler;public class LoginItemXmlHandler extends DefaultHandler { Boolean currentElement = false; String currentValuehttp://stackoverflow.com/questions/12621002/= ""; LoginItem item = null; private ArrayList<LoginItem> itemsList = new ArrayList<LoginItem>(); public ArrayList<LoginItem> getItemsList(){return itemsList;} // Called when tag starts @Override public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException{ currentElement = true; currentValuehttp://stackoverflow.com/questions/12621002/= ""; if (localName.equals("UserLogin")){item = new LoginItem();} } // Called when tag closing @Override public void endElement(String uri, String localName, String qName) throws SAXException { currentElement = false; /** set value */ if (localName.equalsIgnoreCase("Authenticated")) item.setLoginAuthenticated(currentValue); else if (localName.equalsIgnoreCase("UserId")) item.setLoginUserId(currentValue); } // Called to get tag characters @Override public void characters(char[] ch, int start, int length) throws SAXException { if (currentElement) { currentValue = http://stackoverflow.com/questions/12621002/currentValue + new String(ch, start, length); } }}\[/code\]I'm fairly sure the problem is that the code isn't finding any nodesThe difference between:\[code\]<xml> <xml> <item1>content1</item1> and <node1> <item2>content2</item2> <item1>content1</item1></xml> <item2>content2</item2> </node1> <node2> <item1>content3</item1> <item2>content4</item2> </node2> </xml>\[/code\]I need a solution for the first, or a correction to my existing code. It's probably something very simple, but I can't seem to be able figure it out.