conditions on elements

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sachinask
    New Member
    • May 2007
    • 1

    #1

    conditions on elements

    how to represent schema in such situation

    <elementAll type=”one">
    <element-A>
    <!-- value -->
    </element-A>
    <element-B>
    <!-- value -->
    </element-B>
    <element-C>
    <!-- value -->
    </element-C>

    </elementAll>

    if attribute type=”one” then element-C need to be exists.

    if attribute type=”two” then element-C should not be exists.
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Originally posted by sachinask
    how to represent schema in such situation

    <elementAll type=”one">
    <element-A>
    <!-- value -->
    </element-A>
    <element-B>
    <!-- value -->
    </element-B>
    <element-C>
    <!-- value -->
    </element-C>

    </elementAll>

    if attribute type=”one” then element-C need to be exists.

    if attribute type=”two” then element-C should not be exists.
    Two things, me friendo, Go here:

    http://www.thescripts. com/forum/thread662186.ht ml


    This is my most popular post thus far, I say give it a whirl and see what pops up. Sorry for your troubles:-)

    Comment

    Working...