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

Discussion in 'XML' started by kosaraju.puneeth@gmail.com, Oct 26, 2005.

  1. Guest

    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
     
    , Oct 26, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. P R Sen
    Replies:
    2
    Views:
    367
    Andrew Thompson
    Oct 28, 2004
  2. Abhinav
    Replies:
    1
    Views:
    701
    Abhinav
    Jul 22, 2004
  3. Soren Kuula
    Replies:
    1
    Views:
    474
    Henry S. Thompson
    Dec 1, 2005
  4. ANoobee
    Replies:
    3
    Views:
    403
  5. muttaa

    help me atleast now

    muttaa, Mar 21, 2006, in forum: C Programming
    Replies:
    25
    Views:
    778
    santosh
    Mar 22, 2006
Loading...

Share This Page