[jboss-dev] One Week Until CR1 Component Freeze!
Jason T. Greene
jason.greene at redhat.com
Mon Apr 13 18:40:40 EDT 2009
"All" won't work for his example since he wants to allow child elements
with maxOccurs="unbounded". It looks like this should be a xsd:choice
Alexey Loubyansky wrote:
> Because you have a schema and in the schema you use sequences. If you
> want, use xsd:all instead I don't mind (although it has limitations).
>
> XML must be valid and Java binding consistent with schemas. Or you can
> take over metadata :)
>
> Ales Justin wrote:
>> Why is actually order so important?
>>
>> I for one don't care how MC beans are described.
>> Or any other xml for that matter.
>>
>> I would say just the contrary,
>> while I remember what are some elements and attributes
>> I will never remember the right order.
>> And if I don't have some fancy IDE, e.g. plain notepad or joe,
>> it's like a lottery to get it right. :-)
>>
>> Alexey Loubyansky wrote:
>>> David M. Lloyd wrote:
>>>> So for those of us who are mostly JAXB-ignorant - if I give
>>>> propOrder={} this means that no additional order (beyond what's in
>>>> the XSD, if validation is enabled) will be enforced, right? So I
>>>> should be adding this to every XmlType in my MC metadata class
>>>> definitions?
>>>
>>> Yes, propOrder should match the order in the XSD. And, of course, XML
>>> should follow the same order.
>>>
>>> Make sure it's all consistent before the next release.
>>>
>>> Thanks,
>>> Alexey
>>> _______________________________________________
>>> jboss-development mailing list
>>> jboss-development at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/jboss-development
>>>
>> _______________________________________________
>> jboss-development mailing list
>> jboss-development at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-development
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development
--
Jason T. Greene
JBoss, a division of Red Hat
More information about the jboss-development
mailing list