Hi,
rodablo (AT) gmail (DOT) com wrote:
Quote:
I´m trying to modify a node too, but if I do
addRemoveStep/addInsertAfterStep, I get an "XmlModify::execute: cannot
insert after a node with no parent" (because was already remove it i
guess), the sequence addInsertBeforeStep follow by the addRemoveStep
works fine.
the question:
1. Is this behavior OK? is the right way? (insertBefore BEFORE remove
I´meant) |
Yes, that is the right way to do what you want. XmlModify steps are
executed one after the other, in the order they are specified.
Quote:
2. I notice that addInsertXXX parses the data but I already have an
XmlDocument, Can I pass the DOM inside to the modify in any way to
avoid the extra conversion? |
There is currently no way to pass in an existing XmlDocument or
XmlValue as the content to be added during an XmlModify step. However,
that may be something for us to consider implementing in the future.
John