Home › Forums › General XMetaL Discussion › Getting nodes subset › Reply To: Getting nodes subset
Reply to: Getting nodes subset
June 8, 2011 at 3:04 amI need to get the subset of nodes between 2 text nodes (the latter can be positioned at different hierarchy level) and add the to the new node, but I can't find methods which serve as setters for Range boundaries. I mean something like SetBeginBefore(startNode), SetEndAfter(endNode). As far as I remember such methods present in another XML editor (Arbortext Editor).
And which method should be called for embedding collected nodes into the new node after Range preparation?
I noticed that Range methods names looked very similar and documentation described it shortly, so Range usage is not intuitive for newbies. I think that documentation should contain not only simple examples, but also the results of the code execution (and pictures) in order to compare similar methods and match the difference.