sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
kosaraju.puneeth@gmail.com's Avatar

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


Question posted by: kosaraju.puneeth@gmail.com (Guest) on October 26th, 2005 08:15 AM
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

0 Answers Posted
 
Not the answer you were looking for? Post your question . . .
196,788 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 196,788 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors