Page 1 of 1

Is it possible (simpleType or complexType)?

Posted: Mon Feb 21, 2005 2:41 pm
by przemoc
Is it possible to define a schema for this?

I have element <arg>. I want that <arg> has simpletype (xs:integer) or only one child <var> and any other elements or text.

I don't want to create a new element e.g <number> for simpletype

<arg>
12345
</arg>

or
<arg>
<var/>
</arg/>

please, help mi

Posted: Mon Feb 21, 2005 4:11 pm
by george
Hi,

You cannot do that in XML Schema. You should be able to create a Relax NG schema to cover this requirement.

Best Regards,
George