SilkTest object maps are XML files with "real names" that are expressed in XPath. To convert such a file into a script-based object map (SOM), we can generate a names.py (if we are using Python), by parsing the XML and also the XPath strings using a script like the one attached.
The script below uses eulxml to parse XPath, so you may need to
pip install eulxml before using this script.
Here is an example silk test object map file: