Why is Sax Parser not parsing all tags?
<p>I have xml like this-</p>

<pre><code>&lt;school&gt;
  &lt;screen&gt;&lt;/screen&gt;//#1
  &lt;screen&gt;&lt;/screen&gt;//#2
  &lt;screen&gt;&lt;/screen&gt;//#3
       .
       .
       .
  &lt;screen&gt;&lt;/screen&gt;//51      

 &lt;/school&gt;
</code></pre>

<p>but Sax parsing only read screen upto 15 screen there is no any exception the code is as...</p>

<pre><code>// Called when tag starts
@Override
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException 
{
    // TODO Auto-generated method stub
    super.startElement(uri, localName, qName, attributes);
    currentValue = "";
    if (localName.equalsIgnoreCase("school")) 
    {
        schoolObj = new School();
        schoolObj.setTitle(attributes.getValue("title"));
        schoolObj.setIcon(attributes.getValue("icon"));
        schoolObj.setNavBarColor(attributes.getValue("navBarColor"));
    }
    else if(localName.equalsIgnoreCase("screen"))
    {
        screenObj = new Screen();
        screenObj.setBackGroundColor(attributes.getValue("backgroundColor"));
        screenObj.setBackGroundImage(attributes.getValue("backgroundImg"));
        screenObj.setHasNavigationBar(attributes.getValue("hasNavigationBar"));
        screenObj.setHasTabBar(attributes.getValue("hasTabBar"));
        screenObj.setId(attributes.getValue("id"));
        screenObj.setTemplateId(attributes.getValue("templateId"));
    }
    else if(localName.equalsIgnoreCase("navigation-bar"))
    {
        navigationBarObj = new NavigationBar();
        navigationBarObj.setBackButtonTitle(attributes.getValue("backButtonTitle"));
        navigationBarObj.setColor(attributes.getValue("color"));
        navigationBarObj.setTitle(attributes.getValue("title"));

    }
    else if(localName.equalsIgnoreCase("tab-bar"))
    {
        tabBarObj = new TabBar();
        tabBarObj.setNumberOfTabs(attributes.getValue("numberOfTabs"));
    }
    else if(localName.equalsIgnoreCase("tab-bar-item"))
    {
        if(lstTabBarItem==null)
        {
            lstTabBarItem = new ArrayList&lt;TabBarItem&gt;();
        }
        tabBarItemObj = new TabBarItem();
        tabBarItemObj.setLinkedScreen(attributes.getValue("linkedScreen"));
        tabBarItemObj.setImage(attributes.getValue("image"));
        tabBarItemObj.setTitle(attributes.getValue("title"));
    }
    else if(localName.equalsIgnoreCase("button-view"))
    {
        buttonViewObj = new ButtonView();
        buttonViewObj.setSpacing(attributes.getValue("yOffset"));
        buttonViewObj.setyOffset(attributes.getValue("spacing"));
    }
    else if(localName.equalsIgnoreCase("button"))
    {
        if(lstOfButton==null)
        {
            lstOfButton = new ArrayList&lt;Button&gt;();
        }
        buttonObj= new Button();
        buttonObj.setAction(attributes.getValue("action"));         
        buttonObj.setHeight(attributes.getValue("height"));
        buttonObj.setImage(attributes.getValue("image"));
        buttonObj.setTextColor(attributes.getValue("textColor"));
        buttonObj.setWidth(attributes.getValue("width"));
    }
    else if(localName.equalsIgnoreCase("calender-view"))
    {
        calenderViewObj = new CalenderView();
    }
    else if(localName.equalsIgnoreCase("event"))
    {
        if(lstOfEvent== null)
        {
            lstOfEvent = new ArrayList&lt;com.sam.testParsing.BaseClasses.Event&gt;();
        }
        com.sam.testParsing.BaseClasses.Event eventObj = new com.sam.testParsing.BaseClasses.Event();
        eventObj.setDate(attributes.getValue("date"));
        eventObj.setDay(attributes.getValue("day"));
        eventObj.setDesc(attributes.getValue("desc"));
        eventObj.setTime(attributes.getValue("time"));
        eventObj.setTitle(attributes.getValue("title"));
        lstOfEvent.add(eventObj);
    }
    else if(localName.equalsIgnoreCase("table-view"))
    {
        tableViewObj = new TableView();
        tableViewObj.setNoOfSection(attributes.getValue("noOfSection"));
    }
    else if(localName.equalsIgnoreCase("table-section"))
    {
        tableSectionObj = new TableSection();
        tableSectionObj.setNoOfRows(attributes.getValue("noOfRows"));
        tableSectionObj.setTitle(attributes.getValue("title"));
    }
    else if(localName.equalsIgnoreCase("table-row"))
    {
        if(lstOfTableRow == null)
        {
            lstOfTableRow = new ArrayList&lt;TableRow&gt;();
        }
        tableRowObj = new TableRow();
        tableRowObj.setAction("action");
        tableRowObj.setBackGroundColor("backgroundColor");
        tableRowObj.setHasAccessory("hasAccessory");
        tableRowObj.setHeight("height");
        tableRowObj.setIsClickable(attributes.getValue("isClickable"));         
        tableRowObj.setTextColor("textColor");
        tableRowObj.setWidth(attributes.getValue("width"));
    }
    else if(localName.equalsIgnoreCase("mail-view"))
    {
        mailViewObj= new MailView();
    }
    else if(localName.equalsIgnoreCase("map-view"))
    {
        mapViewObj = new MapView();
    }
    else if (localName.equalsIgnoreCase("center-point"))
    {
        mapViewObj.setCenterTypeValue(attributes.getValue("type"));
    }
    else if (localName.equalsIgnoreCase("browser-view"))
    {
        browserViewObj = new BrowserView();
    }
    else if (localName.equalsIgnoreCase("image-gallery"))
    {
        imageGalleryObj = new ImageGallery();
    }
    else if (localName.equalsIgnoreCase("image-item"))
    {
        imageItemObj = new ImageItem();
        imageItemObj.setDesc(attributes.getValue("desc"));
        imageItemObj.setImageUrl(attributes.getValue("imageURL"));
        imageItemObj.setScreenTitle(attributes.getValue("screenTitle"));
        imageItemObj.setThumbnailUrl(attributes.getValue("thumnailURL"));
        imageItemObj.setTitle(attributes.getValue("title"));
    }
}

// Called when tag closing
@Override
public void endElement(String uri, String localName, String qName)throws SAXException 
{
    /** set value */
    if (localName.equalsIgnoreCase("screen"))
    {
        schoolObj.lstOfscreen.add(screenObj);
    }
    else if (localName.equalsIgnoreCase("navigation-bar"))
    {
        screenObj.setNavObj(navigationBarObj);
    }
    else if (localName.equalsIgnoreCase("tab-bar-item"))
    {
        tabBarObj.setLstOfTabBar(tabBarItemObj);
    }
    else if (localName.equalsIgnoreCase("tab-bar"))
    {
        //tabBarObj.setLstOfTabBar(tabBarItemObj);
        screenObj.setTabBarObj(tabBarObj);
    }
    else if (localName.equalsIgnoreCase("button"))
    {
        buttonObj.setButtonText(currentValue);
        lstOfButton.add(buttonObj);
    }
    else if (localName.equalsIgnoreCase("button-view"))
    {
        buttonViewObj.setLstOfButton(buttonObj);
        screenObj.setButtonViewObj(buttonViewObj);
    }
    else if (localName.equalsIgnoreCase("calender-view"))
    {
        calenderViewObj.setLstOfEvent(lstOfEvent);
        screenObj.setCalenderViewObj(calenderViewObj);
    }
    else if (localName.equalsIgnoreCase("calender-url"))
    {
        calenderViewObj.setCalenderUrl(currentValue);
    }
    else if (localName.equalsIgnoreCase("table-row"))
    {
        tableRowObj.setTableRowText(currentValue);
        lstOfTableRow.add(tableRowObj);

    }
    else if (localName.equalsIgnoreCase("table-section"))
    {
        tableSectionObj.setLstOfTableRow(lstOfTableRow);
    }
    else if (localName.equalsIgnoreCase("table-view"))
    {
        tableViewObj.setLstOfTableSection(lstOfTableSection);
        screenObj.setTableViewObj(tableViewObj);
    }
    else if (localName.equalsIgnoreCase("mail-view"))
    {
        screenObj.setMailViewObj(mailViewObj);
    }
    else if (localName.equalsIgnoreCase("recipient"))
    {
        mailViewObj.setRecipient(currentValue);
    }
    else if (localName.equalsIgnoreCase("subject"))
    {
    mailViewObj.setSubject(currentValue);   
    }
    else if (localName.equalsIgnoreCase("body"))
    {
        mailViewObj.setBody(currentValue);          
    }
    else if (localName.equalsIgnoreCase("delivery-msg"))
    {
        mailViewObj.setDeliveryMessage(currentValue);
    }
    else if (localName.equalsIgnoreCase("failure-msg"))
    {
        mailViewObj.setFailureMessage(currentValue);
    }
    else if (localName.equalsIgnoreCase("map-view"))
    {
        screenObj.setMapViewObj(mapViewObj);
    }
    else if (localName.equalsIgnoreCase("center-point"))
    {
        mapViewObj.setCenterPointType(currentValue);
    }
    else if (localName.equalsIgnoreCase("url"))
    {
        browserViewObj.setUrl(currentValue);
    }
    else if (localName.equalsIgnoreCase("browser-view"))
    {
        screenObj.setBrowserViewObj(browserViewObj);
    }
    else if (localName.equalsIgnoreCase("image-gallery"))
    {
    imageGalleryObj.setLstOfImageItem(lstOfImageItem);  
        screenObj.setImageGalleryObj(imageGalleryObj);
    }
    else if (localName.equalsIgnoreCase("image-item"))
    {
        lstOfImageItem.add(imageItemObj);           
    }

}

// Called to get tag characters
@Override
public void characters(char[] ch, int start, int length)throws SAXException 
{
    currentValue =  new String(ch, start, length);
} 
</code></pre>

<p>there is school pojo class as--</p>

<pre><code>private String title;
private String navBarColor;
private String browserBackButtonTitle;
private String icon;

public List&lt;Screen&gt; lstOfscreen= new ArrayList&lt;Screen&gt;() ;

public void setTitle(String title) 
{
    this.title = title;
}
public String getTitle() 
{
    return title;
}

public void setNavBarColor(String navBarColor) 
{
    this.navBarColor = navBarColor;
}
public String getNavBarColor() 
{
    return navBarColor;
}

public void setBrowserBackButtonTitle(String browserBackButtonTitle) 
{
    this.browserBackButtonTitle = browserBackButtonTitle;
}
public String getBrowserBackButtonTitle() 
{
    return browserBackButtonTitle;
}

public void setIcon(String icon) 
{
    this.icon = icon;
}
public String getIcon() 
{
    return icon;
}
</code></pre>

<p>arraylist of screen class in school class has size only 15 please anyone help me.</p>
