I'm trying to write a workflow process which reads the value of a node in a XML file and then writes it
to a content node with various properties.
My problem is when reading the XML im using the org.w3c.dom.Node library
when writing or finding a node on the JCR i'm using import javax.jcr.Node library
What do i do here? Do i explicitly create the specific node here? I.E -> org.w3c.dom.Node node = nodeList.item();
Solved! Go to Solution.
Views
Replies
Total Likes
Yes, pls. use full qualified path while declaring the variable ( eg. javax.jcr.Node lNode = .... ) instead of importing them.
Views
Replies
Total Likes
you have to use javax.jcr.Node api to create node and set its property.
Views
Replies
Total Likes
Mshajiahmed wrote...
you have to use javax.jcr.Node api to create node and set its property.
Sorry I should have clarified...
I meant to ask since both those packages name their classes "Node" it creates a conflict. However each class is used for different applications.
Thanks.
Views
Replies
Total Likes
When using Node in java app lohic, fully quailify the object so AEM knows which object you want to use.
Views
Replies
Total Likes
Yes, pls. use full qualified path while declaring the variable ( eg. javax.jcr.Node lNode = .... ) instead of importing them.
Views
Replies
Total Likes