Operational command result #479
-
Hello All! trying to do sample command from the doc:
What I have in response is: Why am I not getting all the results? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Your response is correct. element_response.items() will return the attributes of the root element. You can navigate element tags using ElementTree methods, for example:
To view the full xml response, you can use dump() or tostring():
|
Beta Was this translation helpful? Give feedback.
Your response is correct. element_response.items() will return the attributes of the root element. You can navigate element tags using ElementTree methods, for example:
element_response.find('./result/system/hostname').text
To view the full xml response, you can use dump() or tostring():
ET.dump(element_response)