Thomas Mueller wrote:
I think you could use Session or Workspace.importXML(...). But to do
that, you need a correctly formatted XML file, and the unique IDs of
your system must be UUIDs or converted to UUIDs (see
http://en.wikipedia.org/wiki/UUID). The conversion could be done by
creating a SHA-1 hash code or so.
for an example see method RepositoryServiceImpl.BatchImpl.createXMLFragement()
in jackrabbit-spi2jcr [1].
regards
marcel
[1]
http://svn.apache.org/repos/asf/jackrabbit/tags/1.4/jackrabbit-spi2jcr/src/main/java/org/apache/jackrabbit/spi2jcr/RepositoryServiceImpl.java