Home › Forums › General XMetaL Discussion › Inserting Element › Reply To: Inserting Element
Reply to: Inserting Element
October 25, 2013 at 10:50 amHello,
Thanks for your reply.
I have tried to achieve above mntioned functionality i.e. using following logic
1.have selected two ranges range1 and range2 where range1 points at start pont of the node and range2 points at the end pont at the node.
2. If elemnt can not be inserted at the selected pont I keep moving the range1 to next insertion
point inh the node by using following code
var nextNode =child.nextSibling;
//select insertion point before the node
rng1.SelectBeforeNode(nextNode);
child = nextNode;
this logic is working, but I would like to know if is there any API present in Xmetal to move range to the next insertion point in the current node
also could you please let me know how two ranges can be checked for equality?
Regards