{
foundRoot = true;
}
else if ( strict && ! foundRoot )
{
throw new XmlPullParserException( "Expected root element '" + tagName + "' but found '" + parser.getName() + "'", parser, null );
}
else if ( checkFieldWithDuplicate( parser, "expressions", null, parsed ) )
{
java.util.List expressions = new java.util.ArrayList/*<Expression>*/();
expressionDocumentation.setExpressions( expressions );
while ( parser.nextTag() == XmlPullParser.START_TAG )
{
if ( parser.getName().equals( "expression" ) )
{
expressions.add( parseExpression( "expression", parser, strict ) );
}
else if ( strict )
{
throw new XmlPullParserException( "Unrecognised association: '" + parser.getName() + "'", parser, null );
}
else
{
// swallow up to end tag since this is not valid
while ( parser.next() != XmlPullParser.END_TAG ) {}
}
}
}
else if ( strict )
{
throw new XmlPullParserException( "Unrecognised tag: '" + parser.getName() + "'", parser, null );
}
}
eventType = parser.next();
}
return expressionDocumentation;