You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Williamson, Siehnai" <sw...@docucorp.com> on 2000/10/11 17:33:31 UTC
Retrieving Attribute Declarations
Hi,
If an attribute has an attribute declaration in the DTD of enumeration type:
<!ATTLIST person marital (single | married | divorced | widowed) # IMPLIED>
How do you retrieve the actual enumeration string (i.e., (single | married |
divorced | widowed)) using the SAX parser? How do you retrieve the default
value (i.e., #IMPLIED) using the SAX parser?
Thanks
Siehnai Williamson
DocuCorp International, Inc.
Re: Retrieving Attribute Declarations
Posted by Dean Roddey <dr...@charmedquark.com>.
Retrieving Attribute DeclarationsSAX does not cover that kind of thing, at least SAX V1 doesn't. Perhaps SAX V2, which is partically supported in the latest version of the parser provides it. Otherwise, you'll have to use proprietary APIs on the parser. Look at the EnumVal example.
--------------------------
Dean Roddey
The CIDLib C++ Frameworks
Charmed Quark Software
droddey@charmedquark.com
http://www.charmedquark.com
"It takes two buttocks to make friction"
- African Proverb
----- Original Message -----
From: Williamson, Siehnai
To: 'xerces-c-dev@xml.apache.org'
Sent: Wednesday, October 11, 2000 8:33 AM
Subject: Retrieving Attribute Declarations
Hi,
If an attribute has an attribute declaration in the DTD of enumeration type:
<!ATTLIST person marital (single | married | divorced | widowed) # IMPLIED>
How do you retrieve the actual enumeration string (i.e., (single | married | divorced | widowed)) using the SAX parser? How do you retrieve the default value (i.e., #IMPLIED) using the SAX parser?
Thanks
Siehnai Williamson
DocuCorp International, Inc.