Query : Number of Attributes under an element & atleast 1 occurence of element/Attribute

K

kosaraju.puneeth

I am using Xml schema based validation for XML files.

* I have attributes of Required,optional and anyAttribute type. Now
can i validate my XML file in such a way that under a particular
element i find only 2 attributes present(including anyAttribute type)?

* <a>
<b/> <!--Optional element/attribute-->
<c/> <!--Optional element/attribute-->
<d/> <!--Optional element/attribute-->
</a>

now i need to validate that atleast one of them should be present under
"a" in my XML instance file
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top