Re: [xml-dev] Can XML Schemas do this?

From
Thomas B. Passin <>
To
xml-dev <>
Date
2003-01-21T02:54:28Z
ID
<001f01c2c0f8$6a8d9040$4b183044@tbp1>
Thread
Re: [xml-dev] Can XML Schemas do this?
[Rick Jelliffe]

From: "Mike Plusch" <>

> Equivalent in ConciseXML:
> <defclass person
>    name=required=string
>    age=optional=integer
>    birth=optional=datetime
>    _precond=<defmethod> <not age.<is optional/>.
>                              <and birth.<is optional/> />
>             </defmethod>
> </defclass>

Isn't the equivalent in XML as follows?

<?water 
    <defclass person
       name=required=string
       age=optional=integer
       birth=optional=datetime
       _precond=<defmethod> <not age.<is optional/>.
                             <and birth.<is optional/> />
            </defmethod>
    </defclass>
?>

Score one for Rick!

Cheers,

Tom P