* @throws XmlPullParserException
* if an error occurs in the parser
*/
public void parseBatchRequest() throws XmlPullParserException
{
XmlPullParser xpp = container.getParser();
int eventType = xpp.getEventType();
do
{
if ( eventType == XmlPullParser.START_DOCUMENT )
{
container.setState( Dsmlv2StatesEnum.INIT_GRAMMAR_STATE );
}
else if ( eventType == XmlPullParser.END_DOCUMENT )
{
container.setState( Dsmlv2StatesEnum.GRAMMAR_END );
}
else if ( eventType == XmlPullParser.START_TAG )
{
processTag( container, Tag.START );
}
else if ( eventType == XmlPullParser.END_TAG )
{
processTag( container, Tag.END );
}
try
{
eventType = xpp.next();
}
catch ( IOException e )
{
throw new XmlPullParserException( I18n.err( I18n.ERR_03037, e.getLocalizedMessage() ), xpp, null );
}