From users-return-7403-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Tue May 13 13:41:03 2008 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 94738 invoked from network); 13 May 2008 13:41:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 May 2008 13:41:02 -0000 Received: (qmail 90988 invoked by uid 500); 13 May 2008 13:41:03 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 90971 invoked by uid 500); 13 May 2008 13:41:02 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 90960 invoked by uid 99); 13 May 2008 13:41:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 May 2008 06:41:02 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of juanjo.vazquez@gmail.com designates 209.85.198.234 as permitted sender) Received: from [209.85.198.234] (HELO rv-out-0506.google.com) (209.85.198.234) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 May 2008 13:40:14 +0000 Received: by rv-out-0506.google.com with SMTP id k40so3299509rvb.31 for ; Tue, 13 May 2008 06:40:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=VkENo/sDV/7bEaTgZN2kbjTHXJvFncrx/zOGOj0Bsyc=; b=ZYK48OC57+8rU5okQ6mqQtLD25mAOxPEl7O8fGNVnoP43ycpkxSNEHsfAIcbOrY4mnRz+E1Ao5ydP5SrNEjC1veNyrHw+R1jkzGfi0FEQUaJHZm8XQNsipbhJjq9+zfK370UkfJ+y8imm8OgPSJiw4URWQ7icFu16xpww9Jnkk0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=fmyhi0U8sdMuQMeNl35PCRTqOlpmZ4kXvcdUc17hSteIh9IDKiyn2yPtMsx+hLaxztDXUPWEpbyFGk4EDOCJf8+Rnc2+c9ZgBs2KbkIPem1VIguRVDuRGmKZQNRPRS98SHeuK0ra8fMWS55IMU4Uh1FGOmzxPVtc0M/Jq9obr4o= Received: by 10.141.62.15 with SMTP id p15mr4284240rvk.159.1210686028849; Tue, 13 May 2008 06:40:28 -0700 (PDT) Received: by 10.141.159.15 with HTTP; Tue, 13 May 2008 06:40:28 -0700 (PDT) Message-ID: Date: Tue, 13 May 2008 15:40:28 +0200 From: "=?ISO-8859-1?Q?Juan_Jos=E9_V=E1zquez_Delgado?=" To: users@jackrabbit.apache.org Subject: Re: Import nodes with XML In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1118_12709972.1210686029009" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_1118_12709972.1210686029009 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Finally, this has been resolved using the system view format instead the document view one. See the jsr-170 spec [1]. BR, Juanjo. [1] http://jcp.org/en/jsr/detail?id=3D170 On Sun, May 11, 2008 at 7:47 PM, Juanjo V=E1zquez wro= te: > Hi all, > > I=B4m working with import and export issues last days. My first goal is t= o > import a primary set of nodes to the repository using XML. The XML block = to > import is something like this: > > > xmlns:ocm=3D"http://jackrabbit.apache.org/ocm" > jcr:mixinTypes=3D"ocm:discriminator" > ocm:classname=3D"MyComplexType" > stringProperty=3D"stringValue" > booleanProperty=3D"true"> > <.....> > > > And my code: > > session.importXML("/", initContentInputStream, > ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING); > > where "session" is obviously the JCR session. > > The problem is that I=B4m not able to find the way to specify the boolean > property as a real BOOLEAN JCR property. When I import the above XML, all > the properties are treated as STRING properties. > > Can anyone help me?. > > Thanks in advance, > > BR, > > Juanjo. ------=_Part_1118_12709972.1210686029009--