Hi all,
I´m working with import and export issues last days. My first goal is to
import a primary set of nodes to the repository using XML. The XML block to
import is something like this:
<?xml version="1.0" encoding="UTF-8"?>
<myRoot xmlns:jcr="
http://www.jcp.org/jcr/1.0"
xmlns:ocm="
http://jackrabbit.apache.org/ocm"
jcr:mixinTypes="ocm:discriminator"
ocm:classname="MyComplexType"
stringProperty="stringValue"
booleanProperty="true">
<.....></....>
</myRoot>
And my code:
session.importXML("/", initContentInputStream,
ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING);
where "session" is obviously the JCR session.
The problem is that I´m 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.