* @return Snapshot
*/
private Snapshot parseSnapshot( String tagName, XmlPullParser parser, boolean strict )
throws IOException, XmlPullParserException
{
Snapshot snapshot = new Snapshot();
java.util.Set parsed = new java.util.HashSet();
while ( parser.nextTag() == XmlPullParser.START_TAG )
{
if ( checkFieldWithDuplicate( parser, "timestamp", null, parsed ) )
{
snapshot.setTimestamp( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "buildNumber", null, parsed ) )
{
snapshot.setBuildNumber( getIntegerValue( getTrimmedValue( parser.nextText() ), "buildNumber", parser, strict ) );
}
else if ( checkFieldWithDuplicate( parser, "localCopy", null, parsed ) )
{
snapshot.setLocalCopy( getBooleanValue( getTrimmedValue( parser.nextText() ), "localCopy", parser, "false" ) );
}
else
{
if ( strict )
{