Look at the EnumVal sample program. It shows how to get this info. This is
using internal, non-standard APIs that are supported by the parser. There is
some support for this info in the DOM, but its still light. So you might
have to go to the internal APIs to get what you need.

--------------------------
Dean Roddey
The CIDLib C++ Frameworks
Charmed Quark Software
[EMAIL PROTECTED]
http://www.charmedquark.com

"Why put off until tomorrow what you can
put off until the day after tomorrow?"

----- Original Message -----
From: "Stefan Berglund" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 22, 2001 4:01 AM
Subject: How to check mandatory/optional elements


> Hello all,
>
> Is there an easy way to check if a certain element (name given) exists
> somewhere in the DTD(s), and if it's optional or not?
> I've recently started working with Xerces, in a
> communicating-interface-component thingy, using a DOMParser to validate
> messages and then extract certain values from the message and send them
> further on "down the chain" in other formats.
>
> The DTD given in the XML message points further on to another DTD too...
> I've looked among the classes in the hierarchy, but haven't been able to
> figure out what to use for this yet. :-(
>



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

Reply via email to