How to: Allow child elements to appear in any order? Restrict element value based on its attribute v

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<p style="margin:0in 0in 10pt; text-indent:0.25in; line-height:normal <span style="font-family:Calibri <span style="font-size:12pt; color:black Hi,<span style="font-size:12pt; color:black; font-family:"Times New Roman","serif"
<p style="margin:0in 0in 10pt; text-indent:0.25in; line-height:normal <span style="font-family:Calibri <span style="font-size:12pt; color:black I have a XML file and schema created for it:
<p style="margin:0in 0in 10pt; text-indent:0.25in; line-height:normal <span style="font-size:12pt; color:black; font-family:"Times New Roman","serif" <img src="http://social.microsoft.com/Forums/getfile/39705/" alt="
<p style="margin:0in 0in 10pt; text-indent:0.25in; line-height:normal <span style="font-family:Calibri <span style="font-size:12pt; color:black There are few more rules which I need to apply:<span style="font-size:12pt; color:black; font-family:"Times New Roman","serif"
<p style="margin:0in 0in 10pt 48.1pt; text-indent:-0.25in; line-height:normal <span style="font-size:12pt; color:black <span style="font-family:Calibri 1.<span style="font-size:7pt; color:black; font-family:"Times New Roman","serif"
<span style="font-family:Calibri <span style="font-size:12pt; color:black How to allow StaticProperty(min:0 max:1), ConstructProperties(min:0,max:1), DestructProperties(min:0 max:1) and Object(min:0 max:unbounded) elements to appear in any order inside
an Object element?<span style="font-size:7pt; color:black; font-family:"Verdana","sans-serif"
<p style="margin:0in 0in 0pt 48.1pt; text-indent:-0.25in; line-height:normal <span style="font-size:12pt; color:black <span style="font-family:Calibri 2.<span style="font-size:7pt; color:black; font-family:"Times New Roman","serif"
<span style="font-family:Calibri <span style="font-size:12pt; color:black How to restrict Property element value to a string of specific length? Or even better if it is possible to apply different restrictions based on the value of the attribute Name.<span style="font-size:7pt; color:black; font-family:"Verdana","sans-serif"
<p style="margin:0in 0in 10pt 48.1pt; text-indent:-0.25in; line-height:normal <span style="font-size:12pt; color:black <span style="font-family:Calibri 3.<span style="font-size:7pt; color:black; font-family:"Times New Roman","serif"
<span style="font-family:Calibri <span style="font-size:12pt; color:black How to restrict repetition of a particular Property (Name=âAâ) inside an Object element? (Can not re-appear in ConstructProperties and/or DestructProperties)
<span style="font-size:7pt; color:black; font-family:"Verdana","sans-serif"
<p style="margin:0in 0in 10pt 48.1pt; text-indent:-0.25in; line-height:normal <span style="font-size:12pt; color:black <span style="font-family:Calibri 4.<span style="font-size:7pt; color:black; font-family:"Times New Roman","serif"
<span style="font-family:Calibri <span style="font-size:12pt; color:black Also, is it possible to restrict the Property Name attribute values based on the type of the enclosing object?<span style="font-size:7pt; color:black; font-family:"Verdana","sans-serif"
<p style="margin:0in 0in 0pt 43.5pt; line-height:normal <span style="font-size:12pt; color:black <span style="font-family:Calibri <img src="http://social.microsoft.com/Forums/getfile/39706/" alt="
<p style="margin:0in 0in 0pt 43.5pt; line-height:normal <span style="font-size:12pt; color:black <span style="font-family:Calibri Thanks,
<p style="margin:0in 0in 0pt 43.5pt; line-height:normal <span style="font-size:12pt; color:black <span style="font-size:12pt; color:black; line-height:115%; font-family:"Calibri","sans-serif" Tejas.

View the full article
 
Back
Top