M
mcha226
Hi All:
In my XML document, sometimes I have:
<a>xxxxxxxx</a>
and sometimes I have
<a><text>xxxxx xxxxx</text></a>
which can distinguish a long text and a ordinary string.
I am trying to come up with a general schema which will think both are
valid.
I tried to creat a type which can be used for this by using xs:choice.
However I am not really successful as my schema cannot pass the schema
validator.
Can anyone tell me how I can do that? Thanks.
In my XML document, sometimes I have:
<a>xxxxxxxx</a>
and sometimes I have
<a><text>xxxxx xxxxx</text></a>
which can distinguish a long text and a ordinary string.
I am trying to come up with a general schema which will think both are
valid.
I tried to creat a type which can be used for this by using xs:choice.
However I am not really successful as my schema cannot pass the schema
validator.
Can anyone tell me how I can do that? Thanks.