* @return License
*/
private License parseLicense( String tagName, XmlPullParser parser, boolean strict )
throws IOException, XmlPullParserException
{
License license = new License();
java.util.Set parsed = new java.util.HashSet();
while ( parser.nextTag() == XmlPullParser.START_TAG )
{
if ( checkFieldWithDuplicate( parser, "name", null, parsed ) )
{
license.setName( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "url", null, parsed ) )
{
license.setUrl( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "distribution", null, parsed ) )
{
license.setDistribution( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "comments", null, parsed ) )
{
license.setComments( getTrimmedValue( parser.nextText() ) );
}
else
{
if ( strict )
{