[jdom-interest] getText() and getAttributeValue()

rpcee rpcee at operamail.com
Wed Feb 13 03:15:03 PST 2002


I have used == null on getAttributeValue() because some schemas allow an 
element to be identified or referenced (xsd:element name=... and xsd:element 
ref=...);

i could change to check for "" because "" would not be valid but somehow == 
null is more definite (it's only a toy program; I'm not sure if it relates to 
the real world).

on a minor related note, should Element's getAttribute() methods document what 
happens if the attribute doesn't exist?

Rich




More information about the jdom-interest mailing list