and i am trying to move up a node for instance node with id="6" or node
id="4", id="10" cant be moved up only able to move between the same levels.
(c#) (i also want to move nodes one step down when pressing another button)
i was trying somethign like:
singlenode = mdoc.selectsinglenode(xpath);
Use
singleNode.ParentNode.InsertBefore(singleNode,
singleNode.PreviousSibling)
and
singleNode.ParentNode.InsertAfter(singleNode, singleNode.NextSibling)
for the other direction
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/