Initialize with required RSID and optional author. Args: xml_path: Path to XML file to edit rsid: RSID to automatically apply to new elements author: Author name for tracked changes and comments (default: "Claude") initials: Author initials (d
(
self, xml_path, rsid: str, author: str = "Claude", initials: str = "C"
)
| 57 | """ |
| 58 | |
| 59 | def __init__( |
| 60 | self, xml_path, rsid: str, author: str = "Claude", initials: str = "C" |
| 61 | ): |
| 62 | """Initialize with required RSID and optional author. |
| 63 | |
| 64 | Args: |
| 65 | xml_path: Path to XML file to edit |
| 66 | rsid: RSID to automatically apply to new elements |
| 67 | author: Author name for tracked changes and comments (default: "Claude") |
| 68 | initials: Author initials (default: "C") |
| 69 | """ |
| 70 | super().__init__(xml_path) |
| 71 | self.rsid = rsid |
| 72 | self.author = author |
| 73 | self.initials = initials |
| 74 | |
| 75 | def _get_next_change_id(self): |
| 76 | """Get the next available change ID by checking all tracked change elements.""" |