I doubt that Xerces provides any feature for parsing of DTDs. You could
alternatively have a look at the DTD parser developed by Mark Wutka
available at www.wutka.com/dtdparser.html

Getting the values in a choice element is not as straight forward as
"getPossibleValues(person,married)" though :)

Vikram
Planetasia Research Center


----- Original Message -----
From: "Royi Ronen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 06, 2002 11:25 AM
Subject: question regarding dtd parsing


> Hi,
> I am looking for a way to access a dtd from a java code, and given an
> element+attribute name extract it's possible values (if exist)
> For example, from:
>
>       <!ELEMENT pesron EMPTY>
>       <!ATTLIST person
>              married (true | false) 'false'>
>
> I'd like to be able to do:  getPossibleValues(person,married)
>                   getDefaultValues(person,married)
>
> Does xerces provide something for such needs?
>
> Thanks,
>
> Royi Ronen
> Active Management Technologies
> IBM Haifa Research Laboratories, 165 Abba Hushi Ave. Haifa 31905, Israel
> Email: [EMAIL PROTECTED]
> Phone: ++ 972-4-8296314
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to