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:
<xs:attribute name="test-name" default="test-value"/> Note: make sure to enable XML Schema validation. Regards, Edwin ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_idt12&alloc_id344&op=click _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user