Hi,
I am using Xerces 1.4.1 and have a problem with default attributes defined in my DTD.

<!ATTLIST contrived attest (simple|complex) "simple">

It seems that that the XML spec. allows attributes to be #REQUIRED, #IMPLIED
or a default value to be set.

What I am trying to achieve is for the attribute attest to be always written
to the output XML file on save (regardless of whether or not it has the
default value).

What I am experiencing is:
- if the attest attribute is set to "simple" Xerces does not write it to
file on serialization and output
- if the attest attribute is set to "complex" (ie anything other than the
default) Xerces does write the attribute to file

The output produced in both cases is valid and the attribute values are
always available.

Does anyone know how I can force Xerces to write out these types of
attributes?

Thanks,
Justin.





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

Reply via email to