{
testResourceDesc.setFiltered( getValueFilteredAttribute( testResource.getAttribute( "filtered" ) ) );
}
catch ( IllegalArgumentException iae )
{
throw new XmlPullParserException( iae.getMessage() );
}
}
if ( testResource.getAttribute( "encoding" ) != null )
{
TemplateDescriptor testResourceDesc = descriptor.getTestResourceDescriptor( testResource.getValue() );
try
{
testResourceDesc.setEncoding( testResource.getAttribute( "encoding" ) );
}
catch ( IllegalCharsetNameException icne )
{
throw new XmlPullParserException(
testResource.getAttribute( "encoding" ) + " is not a valid encoding." );
}
catch ( UnsupportedCharsetException uce )
{
throw new XmlPullParserException(
testResource.getAttribute( "encoding" ) + " is not a supported encoding." );
}
}
if ( testResource.getValue().endsWith( ".properties" ) )