Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Function for assigning xml:id
  • Loading branch information
Klaus Thoden committed Nov 27, 2018
1 parent 076f1ac commit c79a0ad
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libeoaconvert.py
Expand Up @@ -364,3 +364,11 @@ def get_place_in_xml_tree(element, tree):

return position
# def get_place_in_xml_tree ends here

def assign_xml_id(element, identifier):
"""Assign an xml:id to an element"""

element.attrib["{http://www.w3.org/XML/1998/namespace}id"] = identifier

return
# def assign_xml_id ends here

0 comments on commit c79a0ad

Please sign in to comment.