simplecontent in a choice (xmlschema)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Thijs

    simplecontent in a choice (xmlschema)

    Hej,

    I want to achieve the following situation:
    <mytag>foo</mytag>

    or:
    <mytag><other ref="bar"/></mytag>

    So mytag contains either text (simplecontent) or the other element.

    How do I specify this in xmlschema?? I'm not able to add a
    simplecontent element into a choice element.

    Thanks in advance,
    Thys
  • Martin Honnen

    #2
    Re: simplecontent in a choice (xmlschema)

    Thijs wrote:
    I want to achieve the following situation:
    <mytag>foo</mytag>
    >
    or:
    <mytag><other ref="bar"/></mytag>
    >
    So mytag contains either text (simplecontent) or the other element.
    >
    How do I specify this in xmlschema?? I'm not able to add a
    simplecontent element into a choice element.
    I think the only way is by allowing mixed content, see



    --

    Martin Honnen

    Comment

    Working...