Just updated the schemas: methodCall.xsd
Saturday 21 April 2001
Just updated the schemas: methodCall.xsd and methodResponse.xsd.
Andreas Bolka pointed out that the params element is not necessary for method calls with no parameters (depending on how you interpret the XML-RPC spec).
I also modifed the valueType definition to partially handle the case when the type sub-element is not used. The mixed="true" attribute and the minOccurs="0" for the xsd:choice allows:
<value>some text</value>
and:
<value><string>some text</string></value>
but also allows:
<value>erroneous text<string>some text</string></value>
Unfortunately I'm pretty sure this is as close as you can get with XML Schema.
Posted by
at 01:27 PM.
Permalink.
Copyright © Charles Cook.
Valid XHTML 1.0