From: Adam R. <ad...@ex...> - 2011-02-23 19:41:13
|
On 23 February 2011 20:34, Adam Retter <ad...@ex...> wrote: > You should be able to use code similar to that in the xmldb:store function... But dont use the XMLDB stuff itself, look at the underlying implementation e.g. org.exist.xmldb.LocalCollection::storeXMLResource(...) is a good place to start. It basically shows you how to call org.exist.collections.Collection::validateXMLResource(...) and org.exist.collections.Collection::store(...) When using the Internal API though please be very careful with your transactions and locks. > On 23 February 2011 18:57, Loren Cahlander <lor...@gm...> wrote: >> Hello folks, >> >> It has been a while since I was doing some Java work on eXist. I am working a JavaJob the generates an XML document through org.exist.memtree.MemTreeBuilder. I have a DBBroker and an XmldbURI for the collection and the document where I wish to store the XML document. >> >> Is there an existing API that is simple for me to use to do this? >> >> Cheers, >> Loren >> >> >> ------------------------------------------------------------------------------ >> Free Software Download: Index, Search & Analyze Logs and other IT data in >> Real-Time with Splunk. Collect, index and harness all the fast moving IT data >> generated by your applications, servers and devices whether physical, virtual >> or in the cloud. Deliver compliance at lower cost and gain new business >> insights. http://p.sf.net/sfu/splunk-dev2dev >> _______________________________________________ >> Exist-development mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-development >> > > > > -- > Adam Retter > > eXist Developer > { United Kingdom } > ad...@ex... > irc://irc.freenode.net/existdb > -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |