XML Schema - "dynamic"...?..

Discussion in 'XML' started by stiank81, Jul 18, 2005.

  1. stiank81

    stiank81 Guest

    Hi.

    Is there any possibility to have a XML Schema witch validates
    differently due to the value of some fields in the XML. Let me
    explain..

    What I mean is:
    I have one element in the XSD, and depending on the value of that
    element the rules should differ. If the value of the element is say "1"
    than some of the other elements is required (minOccurs=1), but else it
    isn't (minOccurs=0). So what I want to do is basically to make some
    elements required if some spesific values is given in the XML.

    Is there any possibilities to solve this (in the XSD)?

    Best Regards,
    Stian
    stiank81, Jul 18, 2005
    #1
    1. Advertising

  2. No

    --
    Stan Kitsis
    Program Manager, XML Technologies
    Microsoft Corporation

    This posting is provided "AS IS" with no warranties, and confers no rights.


    "stiank81" <> wrote in message
    news:...
    > Hi.
    >
    > Is there any possibility to have a XML Schema witch validates
    > differently due to the value of some fields in the XML. Let me
    > explain..
    >
    > What I mean is:
    > I have one element in the XSD, and depending on the value of that
    > element the rules should differ. If the value of the element is say "1"
    > than some of the other elements is required (minOccurs=1), but else it
    > isn't (minOccurs=0). So what I want to do is basically to make some
    > elements required if some spesific values is given in the XML.
    >
    > Is there any possibilities to solve this (in the XSD)?
    >
    > Best Regards,
    > Stian
    >
    Stan Kitsis [MSFT], Jul 18, 2005
    #2
    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. Markus
    Replies:
    1
    Views:
    1,494
    Markus
    Nov 23, 2005
  2. Fred Smith
    Replies:
    1
    Views:
    921
    Martin Honnen
    Feb 5, 2004
  3. Hari Om
    Replies:
    1
    Views:
    448
    Martin SChukrazy
    Mar 2, 2004
  4. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,166
    Stanimir Stamenkov
    Apr 25, 2005
  5. Replies:
    3
    Views:
    2,784
Loading...

Share This Page