I am using SQLXMLBULKLOAD library to load a xml file using a xsd. Below is the section from XSD.
<xsd:element name="Information" sql:is-constant="1">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="E_Code" type="xsd:string" sql:is-constant="1"/>
<xsd:element name="E_Amount" type="xsd:string" minOccurs="0" sql:field="Amount_Paid"/>
<xsd:element name="E_Quantity" nillable="true" minOccurs="0" sql:is-constant="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>.
The Element "Information" shown above can occur 10 times and i need to check if 'E_Code' = "xxxx" then only consider information block & E-Amount to bulk load otherwise proceed to the next information block for same condition check. Is it possible to do this in the schema file?
Please Help