1from collections import namedtuple
2
3# The edit script actions used in xmldiff
4DeleteNode = namedtuple('DeleteNode', 'node')
5InsertNode = namedtuple('InsertNode', 'target tag position')
6RenameNode = namedtuple('RenameNode', 'node tag')
7MoveNode = namedtuple('MoveNode', 'node target position')
8
9UpdateTextIn = namedtuple('UpdateTextIn', 'node text')
10UpdateTextAfter = namedtuple('UpdateTextAfter', 'node text')
11
12UpdateAttrib = namedtuple('UpdateAttrib', 'node name value')
13DeleteAttrib = namedtuple('DeleteAttrib', 'node name')
14InsertAttrib = namedtuple('InsertAttrib', 'node name value')
15RenameAttrib = namedtuple('RenameAttrib', 'node oldname newname')
16
17InsertComment = namedtuple('InsertComment', 'target position text')
18