You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Michael Wechner <mi...@wyona.com> on 2005/03/10 13:20:26 UTC
exportXML?
Hi
Does something like "exportXML" exist similar to session.importXML(...)
just the other
way around? (Maybe I have missed something, but I didn't find anything
like that)
Thanks
Michi
--
Michael Wechner
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
michael.wechner@wyona.com michi@apache.org
Re: exportXML?
Posted by Stefano Mazzocchi <st...@apache.org>.
Stefan Guggisberg wrote:
> michi,
>
> please read the spec. "6.5 Exporting Repository Content" answers your questions.
>
> btw: you should try a little harder to find the information before
> posting such questions.
Ok, c'mon, Stefan, we are all lazy asses at the end of the day ;-)
--
Stefano.
Re: exportXML?
Posted by Michael Wechner <mi...@wyona.com>.
David Nuescheler wrote:
>>well, I grepped the code for "export" and actually found the methods in
>>SessionImpl, but
>>my brain was kind of looking for a method returning a DOM Document and
>>my brain wasn't flexible enough to realize that the API just offers an
>>export through a ContentHandler.
>>
>>
>well, workspaces should not be limited with respect to their size
>(that means that they should be able to become much bigger than
>jvm mem), so DOM as a general purpose mechanism may be
>a bad choice...
>
>
agreed. It would just have been convenient for my type of application
but on the hand it's actually this problem I need to solve ;-)
Michi
>regards,
>david
>
>
>
--
Michael Wechner
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
michael.wechner@wyona.com michi@apache.org
Re: exportXML?
Posted by David Nuescheler <da...@gmail.com>.
> well, I grepped the code for "export" and actually found the methods in
> SessionImpl, but
> my brain was kind of looking for a method returning a DOM Document and
> my brain wasn't flexible enough to realize that the API just offers an
> export through a ContentHandler.
well, workspaces should not be limited with respect to their size
(that means that they should be able to become much bigger than
jvm mem), so DOM as a general purpose mechanism may be
a bad choice...
regards,
david
Re: exportXML?
Posted by Michael Wechner <mi...@wyona.com>.
Stefan Guggisberg wrote:
>michi,
>
>please read the spec. "6.5 Exporting Repository Content" answers your questions.
>
>
thanks for the pointer
>btw: you should try a little harder to find the information before
>posting such questions.
>
>
well, I grepped the code for "export" and actually found the methods in
SessionImpl, but
my brain was kind of looking for a method returning a DOM Document and
my brain wasn't flexible enough to realize that the API just offers an
export through a ContentHandler.
btw, for my usecase I use:
org.apache.cocoon.xml.dom.DOMBuilder domBuilder = new
org.apache.cocoon.xml.dom.DOMBuilder();
session.exportDocView("/live/_pre10:site", domBuilder, true, false);
document = domBuilder.getDocument();
log.debug("Root Element Name: " +
document.getDocumentElement().getTagName());
whereas I still need to figure out how have to handle the namespace
correctly.
Any pointers welcome, but will try to figure out myself ;-)
Thanks
Michi
>stefan
>
>
>On Thu, 10 Mar 2005 13:20:26 +0100, Michael Wechner
><mi...@wyona.com> wrote:
>
>
>>Hi
>>
>>Does something like "exportXML" exist similar to session.importXML(...)
>>just the other
>>way around? (Maybe I have missed something, but I didn't find anything
>>like that)
>>
>>Thanks
>>
>>Michi
>>
>>--
>>Michael Wechner
>>Wyona Inc. - Open Source Content Management - Apache Lenya
>>http://www.wyona.com http://lenya.apache.org
>>michael.wechner@wyona.com michi@apache.org
>>
>>
>>
>>
>
>
>
--
Michael Wechner
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
michael.wechner@wyona.com michi@apache.org
Re: exportXML?
Posted by Stefan Guggisberg <st...@gmail.com>.
michi,
please read the spec. "6.5 Exporting Repository Content" answers your questions.
btw: you should try a little harder to find the information before
posting such questions.
stefan
On Thu, 10 Mar 2005 13:20:26 +0100, Michael Wechner
<mi...@wyona.com> wrote:
> Hi
>
> Does something like "exportXML" exist similar to session.importXML(...)
> just the other
> way around? (Maybe I have missed something, but I didn't find anything
> like that)
>
> Thanks
>
> Michi
>
> --
> Michael Wechner
> Wyona Inc. - Open Source Content Management - Apache Lenya
> http://www.wyona.com http://lenya.apache.org
> michael.wechner@wyona.com michi@apache.org
>
>