Hi Alain

The getValue() should return the enumeartion of values
"(msgq|exec|axml|push)". And getValueDefault() should return the default
value, which is "msgq" using your example.

James
----- Original Message -----
From: "Alain Schneble (Realize IT GmbH)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 29, 2001 2:14 PM
Subject: [dom4j-user] How to extract enumeration values in a DTD attribute
statement


Hi everybody

With the getType() method from the AttributeDecl class I get a
return value indicating an ENUMERATION type.

Is there an easy way to receive the corresponding enumeration values?

I appreciate your help.

Alain

DTD-fragment:
...
<!ELEMENT service EMPTY>
<!ATTLIST service
          protocol (msgq|exec|axml|push) "msgq"
>
...

Code-fragment:
...
AttributeDecl dtdAttribute;
...
...
dtdAttribute.getType();
...


_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to