[jboss-dev] One Week Until CR1 Component Freeze!

David M. Lloyd david.lloyd at redhat.com
Mon Apr 13 18:49:14 EDT 2009


It's not a decision between "all" and "sequence".  I think "choice" is 
usually the right, uh, choice for human-written XML descriptors.  Using 
"sequence" is probably better for stuff that is both written and consumed 
programmatically.

People like to have the freedom to structure their XML descriptors the way 
that makes the most sense to them.

- DML

On 04/13/2009 04:17 PM, 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



More information about the jboss-development mailing list