Lines Matching refs:child2
78 # child2 will be inserted before child1 in the child list of the parent.
79 # If an xpath, child2 will be inserted before the first child to match
81 # @param child2 the child to insert
83 def insert_before( child1, child2 )
86 child1.parent.insert_before child1, child2
89 child2.parent.delete(child2) if child2.parent
90 @children[ind,0] = child2
91 child2.parent = self
98 # child2 will be inserted after child1 in the child list of the parent.
99 # If an xpath, child2 will be inserted after the first child to match
101 # @param child2 the child to insert
103 def insert_after( child1, child2 )
106 child1.parent.insert_after child1, child2
109 child2.parent.delete(child2) if child2.parent
110 @children[ind,0] = child2
111 child2.parent = self