* @return Scm
*/
private Scm parseScm( String tagName, XmlPullParser parser, boolean strict )
throws IOException, XmlPullParserException
{
Scm scm = new Scm();
java.util.Set parsed = new java.util.HashSet();
while ( parser.nextTag() == XmlPullParser.START_TAG )
{
if ( checkFieldWithDuplicate( parser, "connection", null, parsed ) )
{
scm.setConnection( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "developerConnection", null, parsed ) )
{
scm.setDeveloperConnection( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "tag", null, parsed ) )
{
scm.setTag( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "url", null, parsed ) )
{
scm.setUrl( getTrimmedValue( parser.nextText() ) );
}
else
{
if ( strict )
{