On Apr 13, 2006, at 7:48 AM, Paul Sandoz wrote:
> Alan Hudson wrote:
>> Paul Sandoz wrote:
>>> Hi,
>>>
>>> Some people on this list may be interested in this blog i just
>>> wrote:
>>>
>>> http://blogs.sun.com/roller/page/sandoz?
>>> entry=realistic_generation_and_use_of
>> Very nice work.
>> I think a next stage will be to assign encoders based on the
>> schema type. I expect just using the builtin ones like ints/
>> floats will save a fair bit of space.
>>
>
> Yes, very good point.
>
> It should be possible to extend the SchemaProcessor to have a
> methods to obtain two Map<QName, QName> for elements and attributes
> that maps an element/attribute to a QName of a simple data type or
> a list of simple data type (so it is easy to support arrays).
This would be really nice to have. In addition to exposing any of
this info to a user, it would also be nice to abstract all this away
by having a smart serializer that automatically chooses the best
encoding algorithm based on the schema information. That would make
this really easy to use.
-- Santiago