You could try creating one using another method (rmi, jcr explorer...) and
export it [1]. That should show you how it should look to import correctly.
[1] http://www.day.com/specs/jcr/2.0/7_Export.html
-----Original Message-----
From: nylg [mailto:goltz@lat-lon.de]
Sent: Tue 8/23/2011 3:37 AM
To: users@jackrabbit.apache.org
Subject: insert multi-valued nodes via WebDAV
Hello Everyone,
I try to insert a multi-valued node in the repository using WebDAV access as
included in the jackrabbit-webapp-2.2.7.jar. Inserting the first node works
fine with the following request:
<?xml version="1.0" encoding="UTF-8"?>
<sv:node sv:name="jrc:service" xmlns:jcr="http://www.jcp.org/jcr/1.0"
xmlns:sv="http://www.jcp.org/jcr/sv/1.0">
<sv:property sv:name="jrc:url" sv:type="String">
<sv:value>TesTesTesT</sv:value>
</sv:property>
</sv:node>
curl --request MKCOL -H "Content-Type:text/xml" -d @mkcol.xml
http://localhost:8010/jrcportal-baseservice-webapp-simple/server/default/jcr:
root/jrc
I'm wondering how to insert more nodes of the same type. The relevant nodes
are defined as follows:
[jrc:Organisation]
-jrc:organisationName (string)
primary
< 'jrc','ger'
+jrc:service (jrc:Service)
=jrc:Service
multiple
[jrc:Service]
-jrc:url (string)
mandatory
Does anyone have an idea?
best regards,
nylg
--
View this message in context:
http://jackrabbit.510166.n4.nabble.com/insert-multi-valued-nodes-via-WebDAV-t
p3762041p3762041.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
|