Skip to content
Permalink
Browse files

Function for assigning xml:id

  • Loading branch information...
kthoden committed Nov 27, 2018
1 parent 076f1ac commit c79a0ad0ebee7a14a69a8e80baf0e1638dbd1724
Showing with 8 additions and 0 deletions.
  1. +8 −0 libeoaconvert.py
@@ -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.
You can’t perform that action at this time.