This depends on which XML Parser you're using.
Defining your attribute like this in your XML Schema should do the trick if
you are using Xerces:
Note: make sure to enable XML Schema validation.
Regards,
Edwin
---
This SF.Net email is sponso
Hi!
I'm using dom4j 1.5.2 to read in some XML.
The XML is specified by an XML Schema.
Is it possible to have an optional attribute set to the default value from
the schema?
I guess that the XML is not validated against the schema by default?
Thanks for your help
Alexander Rind
-