From: Alan Painter <alan.painter@gm...> - 2005-01-24 09:14:34
I've been trying to figure out a way --and eventually the best way --
to construct a NodeInfo value as the return from an extension function.
The documentation gives this hint:
>Note that Saxon's two principal tree structures both conform to the
DOM Core Level 2 >interface. However, they are read-only: any attempt
to modify the tree causes an exception. >Saxon's trees can only be
built using the Saxon subclasses of the net.sf.saxon.tree.Builder
>class, and they cannot be modified in situ. (The simplest way for a
Java application to build a >Saxon tree is by using the
What I'd like to be able to do is to construct a new Node in two
-- either a copy of a NodeInfo or NodeList received as an argument
-- a new blank Node
Then I'd like to be able to modify the Node and its descendants
-- with setTextConent()
-- with replaceChild() or appendChild()
You can't modify a Saxon DOM tree and I haven't been able to find a workaround.
thanks in advance
Get latest updates about Open Source Projects, Conferences and News.