Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if node is not None:
- pos = 'inside'
- if node2.get('position'):
- pos = node2.get('position')
- if pos == 'replace':
- for child in node2:
- print "node.tag", node.tag
- node.addprevious(child)
- node.getparent().remove(node)
- else:
Add Comment
Please, Sign In to add comment