I have a need to use lxml’s objectify module to create some xml elements that have a dash in them. For example:
<program-id>$Id: myFile.py 3519 2012-07-17 13:37:20Z $</program-id>
<formatter-txt>basic format</formatter-txt>
I can’t find any references online about how to do this and when I try to just do it in Python, it’s a syntax error. Any help would be appreciated.
Using the documentation here as I’ve never used objectify: