[jboss-dev] One Week Until CR1 Component Freeze!
Anil Saldhana
Anil.Saldhana at redhat.com
Mon Apr 13 17:21:39 EDT 2009
Ales, just attend one of interoperability events involving a flavor of
xml and you will realize the value of schema validation.
We need to maintain proper order based on schema IMO.
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
More information about the jboss-development
mailing list