Title: Message
I think I figured it out. You basically have to do the following:
 
1) Create and move a cursor to where you want to add the item (newPosCursor).
2) Add the new XmlObject (will be placed toward the end of the document)
3) Get the cursor of the new XmlObject (XmlCursor currentPosCursor = xmlObject.newCursor()).
4) Move the new XmlObject to the newPosCursor (currentPosCursor.moveXml(newPosCursor))
 
Though I don't know how elegant this is.
 
Damon
 
-----Original Message-----
From: Jones, Damon
Sent: Monday, December 05, 2005 11:27 AM
To: [email protected]
Subject: XmlCursor - equivalent setObject() method?

Hello,

I am trying to figure out the best way to place a newly created XmlObject anywhere in my existing XML document. I understand that you can use the XmlCursor to move to a certain position in the XML document. Then I would like to add the new XmlObject into that position.

Is there a way to do this.

Thanks,
Damon Jones

Reply via email to