The parser cannot help you here. The XML specification says that the values
of an enumeration will have certain characteristics and one of them is that
its not an empty string. So you will have to make up a value like "None" or
something like that which indicates no selection.
----------------------------------------
Dean Roddey
Software Weenie
IBM Center for Java Technology - Silicon Valley
[EMAIL PROTECTED]
Thomas Rademacher <[EMAIL PROTECTED]> on 04/15/2000 11:52:49
PM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject: Enum - parser -problem
Hallo,
I have a problem with an Enumerated Attribute Type in a XML-file, the
DTD-file and the validating xerces parser.
A XML-file generator build in dependency of the inputs of the user the
mandatory Element color with the Attribute value.
...
<color value=""/>
...
or
...
<color value="RED"/>
...
or
...
<color value="GREEN"/>
...
All 3 versions are correctly. The possible Attribute values are "RED",
"GREEN" and "". I need expressly the version <color value=""/> !!! I
need always one version (mandatory Element)!
Now I have a problem with the validating xerces-c_1_1_0-win32-parser.
How can I create my DTD-file without a fatal error message and an abort
of my parser?
The DTD-line <!ATTLIST color value (RED | GREEN ) "" accept only the
XML-line <color/>.
With the xml-line <color value=""/> the parser supplies a fatal error
message and an abort.
The DTD-line <!ATTLIST color value (RED | GREEN | "") is not
accepted by the parser.
How can I solve the problem?
For your help says Thomas from Berlin THANKS!