try {
XmlElement regRoot = XmlSource.read( reader );
String validationStyle = regRoot.getAttribute( "style" );
if ( validationStyle != null ) {
XStyleEx exStyle = (XStyleEx)currentProject.getStyleManager().getStyle( validationStyle );
Color[] colors = new Color[ 3 ];
colors[ 0 ] = (Color)exStyle.getStyleAsColor( "colornormal" );
colors[ 1 ] = (Color)exStyle.getStyleAsColor( "colorwarn" );
colors[ 2 ] = (Color)exStyle.getStyleAsColor( "colorfail" );
XBaseValidator.setValidationColors( colors );
}
Enumeration e = regRoot.getChildren().elements();
validations = new Hashtable();