Troy Benson wrote:
> <recipe name="French Toast">
> 
> In the dtd file, name is specified as an ID. When I try running the sample
> program, DOMCount on this XML file, I get an error that attribute name
> does not support multiple values. I've tried running this XML file with a Java
> parser as well, and I don't receive such an error. What is the correct
> implementation of the XML specification. Thanks.

The XML Specification defines values of type ID to follow the
same rules as NMTOKEN with the restriction that the value be
unique within the document. Therefore, you are not allowed to
have a space in your ID values.

As for not getting an error in the Java parser, you *must*
register an error handler or else you will not receive 
notification of the error. But the parser does correctly
detect the error.

-- 
Andy Clark * IBM, JTC - Silicon Valley * [EMAIL PROTECTED]

Reply via email to