I would reccomend using XmlCursor.moveXml() to achieve this.
As far as why are you getting the XmlValueDisconnectedException, I can't
say I fully understand what you are doing, but I think that you end up
accessing nodes that have been "updated" by the set() operation. This is
sometimes necessary in order to be able to change the type of the nodes,
see XmlObject.set().

Hope this sheds some light,
Radu

           From: 
Dickbauer Klemens
MAX SD
<[EMAIL PROTECTED]>
             To: 
[email protected]
        Subject: 
Moving Nodes and
XmlValueDisconnectedException
           Date: 
Wed, 8 Jun 2005
18:04:45 +0200

        Hi!
        
        I've got a Problem with moving nodes by putting them into an
        Array of user defined types. The reason is that I have a wrapper
        structure around the XMLBean objects and want to synchronize the
        XMLBeans with that wrapper instances.
        Therefore I create those arrays according to the wrapper
        object's sub nodes and use the setNavNodeArray() to update the
        child nodes. Some of the nodes, of course, are therefore "moved"
        from parend node "A" to parent node "A", some really change
        their parent. When accessing the moved XMLBeans again I get a
        XmlValueDisconnectedException. The reason it seems is that
        Cur.moveNodeContents() there is a line y.disconnectUser(); that
        kind of invalidates that node - it doesn't gain validity again
        and leads to that exception.
        Am I doing something wrong with the moving of XMLBean sub nodes?
        Is using the setXxxArray() method not recommanded for that task?
        
        thanx a lot for help,
        ~klemens
        


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to