Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 66704 invoked from network); 23 Jun 2005 12:46:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jun 2005 12:46:18 -0000 Received: (qmail 76273 invoked by uid 500); 23 Jun 2005 12:46:16 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 76260 invoked by uid 99); 23 Jun 2005 12:46:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2005 05:46:16 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of stefan.guggisberg@gmail.com designates 64.233.162.192 as permitted sender) Received: from [64.233.162.192] (HELO zproxy.gmail.com) (64.233.162.192) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2005 05:46:17 -0700 Received: by zproxy.gmail.com with SMTP id 40so159107nzk for ; Thu, 23 Jun 2005 05:46:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kdejEpojSn4l9pFGAfN0sSOkY7F/Isl7ovjzZBT1WSZNNburV94bEzHc2DRcFD99zUUsdKOFFjL5rY3V3k43O3uZok/iP9qgRGX64OFWc2ZfkgNsvq2C21QgXqnBVKslg8lemcGQe3LeOCTn/x20u5NA4O60LxdWxSdernGmzH8= Received: by 10.36.82.9 with SMTP id f9mr1248689nzb; Thu, 23 Jun 2005 05:46:13 -0700 (PDT) Received: by 10.36.81.3 with HTTP; Thu, 23 Jun 2005 05:46:13 -0700 (PDT) Message-ID: <90a8d1c00506230546411d1340@mail.gmail.com> Date: Thu, 23 Jun 2005 14:46:13 +0200 From: Stefan Guggisberg Reply-To: Stefan Guggisberg To: jackrabbit-dev@incubator.apache.org Subject: Re: importXML In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 6/23/05, Sean Radford wrote: > Hi guys, >=20 >=20 >=20 > Has anyone noticed an issue with importing xml and LF characters? >=20 >=20 >=20 > I have an xml document that when imported using Session.importXML(...) > results in new line characters being inserted at the beginning of tag > values: >=20 >=20 >=20 > >=20 > =20 > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" >=20 > PolicyId=3D"test:policy-one" >=20 >=20 > RuleCombiningAlgId=3D"urn:oasis:names:tc:xacml:1.0:rule-combining-algorit= h > m:ordered-permit-overrides"> >=20 > policy-description >=20 > >=20 > .... >=20 >=20 >=20 > Becomes >=20 >=20 >=20 > /test/policies/Policy/jcr:primaryType=3Dnt:unstructured >=20 > /test/policies/Policy/PolicyId=3Dtest:policy-one >=20 > /test/policies/Policy/RuleCombiningAlgId=3Durn:oasis:names:tc:xacml:1.0:r= u > le-combining-algorithm:ordered-permit-overrides >=20 > /test/policies/Policy/Description/jcr:primaryType=3Dnt:unstructured >=20 > /test/policies/Policy/Description/jcr:xmltext/jcr:primaryType=3Dnt:unstru= c > tured >=20 > /test/policies/Policy/Description/jcr:xmltext/jcr:xmlcharacters=3D >=20 > policy-description >=20 > /test/policies/Policy/Target/jcr:primaryType=3Dnt:unstructured >=20 >=20 >=20 > (in other cases, many LFs are inserted) >=20 >=20 >=20 >=20 >=20 > Any ideas why this is happening and how to sort it? i have no idea. please post a jira issue and attach your xml file. i'll then have a look at it. cheers stefan >=20 >=20 >=20 > Thanks and regards, >=20 >=20 >=20 > Sean >=20 >=20 >