Does XSD allow simpleContent and complexContent at the same time?
Posted
by Willi Schönborn
on Stack Overflow
See other posts from Stack Overflow
or by Willi Schönborn
Published on 2010-05-20T16:34:18Z
Indexed on
2010/05/20
17:40 UTC
Read the original article
Hit count: 173
I want to write an xsd for the xmlrpc spec (and generate java classes out of it using jaxb). The xmlrpc spec allows values like:
<value><int>123</int></value>
<value><boolean>1</boolean></value>
But at the same time it requires:
If no type is indicated, the type is string.
Which means i could receive something like this:
<value>test123</value>
which is equivalent to
<value><string>test123</string></value>
Is there a way to define this in an xsd.
© Stack Overflow or respective owner