Is it safe to use the == operator instead of the equals() method to inspect a parsed document containing enumerated simpleTypes ?
if (myXmlObject.getColor().equals(Color.BLUE)) { if (myXmlObject.getColor() == Color.BLUE) { System.out.println("equal and =="); } else { System.out.println("equal but not =="); } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]