Add a child `` `` element with attributes set according to parameter values.
(self, rId: str, reltype: str, target: str, is_external: bool = False)
| 182 | """``<Relationships>`` element, the root element in a .rels file.""" |
| 183 | |
| 184 | def add_rel(self, rId: str, reltype: str, target: str, is_external: bool = False): |
| 185 | """Add a child ``<Relationship>`` element with attributes set according to |
| 186 | parameter values.""" |
| 187 | target_mode = RTM.EXTERNAL if is_external else RTM.INTERNAL |
| 188 | relationship = CT_Relationship.new(rId, reltype, target, target_mode) |
| 189 | self.append(relationship) |
| 190 | |
| 191 | @staticmethod |
| 192 | def new() -> CT_Relationships: |