0

I want to build a common xsd schema file to validate the below 3 format xmls and xsd to validate only the top 2 levels. Please let know if it's possible.

<product:Data>
    <applicaiton>
        <!-- I dont want to validate the below elements -->
        <appField1>value1</appField1>
        <appField2>value2</appField2>
    </application> 
</production:Data>

<product:Data>
    <user>
        <!-- I dont want to validate the below elements -->
        <userField1>val1</userField1>
        <userField2>val2</userField2>
    </user>  
</product:Data>

<product:Data>
     <price>
        <!-- I dont want to validate the below elements -->
        <priceField1>valu1</priceField1>
        <priceField11>valu11</priceField11>
     </price> 
</product:Data>  
skumar
  • 985
  • 4
  • 14
  • 37

0 Answers0