cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Portier <...@outerthought.org>
Subject Re: [Woody] observations, issues, questions, best practices
Date Thu, 15 Jan 2004 21:46:40 GMT


Joerg Heinicke wrote:
> On 15.01.2004 11:52, Marc Portier wrote:
> 
>>> 4. The switching of binding to XML or beans costs to much effort. 
>>> Binding file, JXTemplate (for the result), flow script. Maybe I did 
>>> something the wrong way, but the XML needs at least a root element, 
>>> why this would be annoying for the bean. Some ideas for that?
>>>
>>
>> hm, both are supported, but that doesn't necesarrily mean that 
>> swapping between both is that easy.
>>
>> I encountered the same when doing the first of my binding-samples... I 
>> ended up switching easily by not passing the DOM directly into the 
>> binding, but rather the root-node.   Note: when binding to XML you 
>> need to pass in a DOM Node, not a DOM Document!
> 
> 
> Sometimes it's soo simple. But could it be that it is a one-way ticket? 

nope works both ways for me, of course I write back to the same document 
I read fromm

> Saving the "document" back does not work, because document is null.
> 

howcome?


regards,
-marc=
-- 
Marc Portier                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at                http://blogs.cocoondev.org/mpo/
mpo@outerthought.org                              mpo@apache.org


Mime
View raw message