Search found 4 matches

by rajneesh
Mon Feb 24, 2020 6:40 pm
Forum: General XML Questions
Topic: Is it possible to impose required constraint at value level?
Replies: 1
Views: 303

Is it possible to impose required constraint at value level?

Hello All, Is it possible to impose required constraint at value level? for example in below xml, I wnt to make sure value for alias1, coli1 and operator is always populated in condition element within where element. functionalView name="CLAIMS_FV" description="Learning Purpose"> <columns> <column n...
by rajneesh
Mon Feb 24, 2020 11:20 am
Forum: General XML Questions
Topic: XSD related quetion to enforce "required" option
Replies: 3
Views: 417

Re: XSD related quetion to enforce "required" option

Thanks Tavy, I reached to w3.org and below is recommendation from their end: I think that, the issue you've mentioned can be solved using an XSD 1.1 <assert> instruction. I guess that, you can rewrite your XSD fragment to following (I've only added an <assert>), to achieve what you've mentioned, <xs...
by rajneesh
Fri Feb 21, 2020 2:03 pm
Forum: General XML Questions
Topic: XSD related quetion to enforce "required" option
Replies: 3
Views: 417

XSD related quetion to enforce "required" option

Hello All, I am new to XSD and XML and need to explore if there is option to make sure that any one attribute in a set of attributes within same element is required. Example: <xs:element name="where" maxOccurs="1" minOccurs="0"> <xs:complexType> <xs:sequence> <xs:element name="condition" maxOccurs="...