[Yanel-dev] New XMLDB repository

Michael Wechner michael.wechner at wyona.com
Tue Feb 13 09:27:39 CET 2007


Josias Thöny wrote:

> Michael Wechner wrote:
> [...]
>
>>
>> from my guts I think Yanel should not have to care what kind of data 
>> it's piping through, but maybe my guts tell my something wrong ;-)
>>
>> How is JCR handling this?
>
>
> In JCR, data is stored in properties which have a type. A property of 
> type 'binary' provides getInputStream and setInputStream methods.
> There is also the property type 'string' which provides getString and 
> setString methods, although I doubt that this is meant for storing 
> complete xml documents.
> However, JCR allows to store the mimetype along with the actual data 
> (in a second property), so the repository basically could know what 
> kind of data is being read/written.
> BTW, our node-based repo allows that, too. There are get-/setMimeType 
> methods. But the repo does not force you to use that, and in 
> particular it does not force you to set the mimetype before you write 
> the data.
> ATM I'm not sure if that could solve our problem.


I would suggest to skype this afternoon and then present possible 
approaches on this mailing list in order to make a decision.

Cheers

Michi

>
> josias
>
>
>>
>> Cheers
>>
>> Michi
>>
>>> WDYT?
>>>
>>> josias
>>>
>>>> For writing, there should basically be no problem, since Yanel can 
>>>> decide based on the MIME-type if it is going to write a 
>>>> character-based or a binary resource.
>>>>
>>>
>>>
>>> _______________________________________________
>>> Yanel-development mailing list
>>> Yanel-development at wyona.com
>>> http://wyona.com/cgi-bin/mailman/listinfo/yanel-development
>>>
>>
>>
>
>
> _______________________________________________
> Yanel-development mailing list
> Yanel-development at wyona.com
> http://wyona.com/cgi-bin/mailman/listinfo/yanel-development
>


-- 
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner at wyona.com                        michi at apache.org
+41 44 272 91 61




More information about the Yanel-development mailing list