jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Radford" <Sean.Radf...@mediasurface.com>
Subject importXML
Date Thu, 23 Jun 2005 12:38:54 GMT
Hi guys,

 

Has anyone noticed an issue with importing xml and LF characters?

 

I have an xml document that when imported using Session.importXML(...)
results in new line characters being inserted at the beginning of tag
values:

 

<?xml version="1.0" encoding="UTF-8"?>

<Policy xmlns="urn:oasis:names:tc:xacml:1.0:policy" 

  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 

  PolicyId="test:policy-one" 

 
RuleCombiningAlgId="urn:oasis:names:tc:xacml:1.0:rule-combining-algorith
m:ordered-permit-overrides">

  <Description>policy-description</Description>

  <Target>

....

 

Becomes

 

/test/policies/Policy/jcr:primaryType=nt:unstructured

/test/policies/Policy/PolicyId=test:policy-one

/test/policies/Policy/RuleCombiningAlgId=urn:oasis:names:tc:xacml:1.0:ru
le-combining-algorithm:ordered-permit-overrides

/test/policies/Policy/Description/jcr:primaryType=nt:unstructured

/test/policies/Policy/Description/jcr:xmltext/jcr:primaryType=nt:unstruc
tured

/test/policies/Policy/Description/jcr:xmltext/jcr:xmlcharacters=

policy-description

/test/policies/Policy/Target/jcr:primaryType=nt:unstructured

 

(in other cases, many LFs are inserted)

 

 

Any ideas why this is happening and how to sort it?

 

Thanks and regards,

 

Sean


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message