* @return MailingList
*/
private MailingList parseMailingList( String tagName, XmlPullParser parser, boolean strict )
throws IOException, XmlPullParserException
{
MailingList mailingList = new MailingList();
java.util.Set parsed = new java.util.HashSet();
while ( parser.nextTag() == XmlPullParser.START_TAG )
{
if ( checkFieldWithDuplicate( parser, "name", null, parsed ) )
{
mailingList.setName( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "subscribe", null, parsed ) )
{
mailingList.setSubscribe( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "unsubscribe", null, parsed ) )
{
mailingList.setUnsubscribe( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "post", null, parsed ) )
{
mailingList.setPost( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "archive", null, parsed ) )
{
mailingList.setArchive( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "otherArchives", null, parsed ) )
{
java.util.List otherArchives = new java.util.ArrayList/*<String>*/();
mailingList.setOtherArchives( otherArchives );
while ( parser.nextTag() == XmlPullParser.START_TAG )
{
if ( parser.getName().equals( "otherArchive" ) )
{
otherArchives.add( getTrimmedValue( parser.nextText() ) );