cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
175
Views
0
Helpful
0
Replies

xAPI XML syntax error due to space in the attribute value

vnthomas12
Level 1
Level 1

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?. 

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: