I am using python (module xml2dict) to send specific configurations to Cisco CE codecs. When the configuration attribute has space in between, I am getting XML syntax error: error parsing attribute name.
The CIsco CE SNMP host uses (host 1 address, host 2 address, & host 3 address) attributes. The space between 'host' & '1', '2' & '3' is causing the error. If there is no space in the attribute (e.g. 'communityname'), the program works.
This is the equivalent of the xconfiguraiton for these two settings:
(xconfiguration networkservices snmp communityname; "xyz" ---> this works fine using python's XML2DICT module
xconfiguration networkservices snmp host 1 address: "snmphost.cisco.com" ---> this gives syntax error due to space between 'host' & '1' & also space between '1' & 'address'.
As per XML standard, there should not be any space in the attribute value and it can only be resolved using Cisco specific DTD. Is there a DTD to resolve the space in the attribute value?.