Re: [dom4j-user] Default Values from XML Schema

2005-05-19 Thread Edwin Dankert
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

[dom4j-user] Default Values from XML Schema

2005-04-19 Thread Alexander Rind
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 -