[xsd-users] default_value_xsd_ and_parsing

rajeshwari sajjan rajeshwari.sajjan at gmail.com
Wed Aug 14 08:16:36 EDT 2013


Hi

I have the following thing I'd like to achieve:

	<xs:complexType name="TEST_CASE">
		<xs:sequence>
			<xs:element name="NO_OF_TEST_CASES" type="xs:int" default="1"/>
		</xs:sequence>
	</xs:complexType>


When I get an xml that have the empty NO_OF_TEST_CASES element ,
parsing of the xml fails.

It will generate an error "invalid integer value".


It would be great if you can help regarding this.

Regards,

Rajeshwari


More information about the xsd-users mailing list