Hi,

I am using Saxon9.3 HE.
I have an XQItem of a node. and I want to change it's value at runtime.

I tried below code.

XQItem eleXQ = ele.getXqItem();
SaxonXQItem item = (SaxonXQItem) eleXQ;
            if (item.getSaxonItem() instanceof NodeInfo) {

                ElementOverNodeInfo nodeLine=(ElementOverNodeInfo)item.getNode();
                nodeLine.getTextContent();
                sysout(nodeLine.getTextContent());
                nodeLine.setTextContent("555");
                sysout(nodeLine.getTextContent());

I am getting The Saxon DOM cannot be updated error.

can any one suggest any possible way ?


T
hanks,

--
Kunal Chauhan
mail4ck@gmail.com
[+918655517141]