Skip to content

How do I reference this XML? #513

Answered by JimCotton
JimCotton asked this question in Q&A
Discussion options

You must be logged in to vote

Found a solution, just go for the tag direct. I was under the impression that I had the select the level above, then pull objects from the entry. My two whole weeks of writing Python strike again. Maybe this will answer someone else's question.

response2 = fw.op(cmd_query,cmd_xml=False)
os_entry = response2.find('.//os').text
print(os_entry,'\n')

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JimCotton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant