Operational command result #479
Answered
by
BatD2
kirillmuravyev
asked this question in
Q&A
-
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.
Answered by
BatD2
Oct 27, 2022
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.
0 replies
Answer selected by
kirillmuravyev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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:
element_response.find('./result/system/hostname').text
To view the full xml response, you can use dump() or tostring():
ET.dump(element_response)