Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

missing data while importing xml data from URL

Minkyu Kim August 7, 2024

Hi!

I was trying to import the xml data which was exported from Jira Issues.

When I open the URL, it contains <channel> tag and <item> tags at the same time.

But when I try to import the data using URL in Python, it only has <channel> tag, which means that <item> tags are all gone.

I really wanna know why it happens. 

When I try this in excel VBA, it happens the same.

Is there something I could do?

I'm gonna attach the python code below :

url = "https://jira.global.~.com/sr/jira.issueviews:searchrequest-xml/~/~.xml

#not a real URL - attached to show the style of URL

response = urllib.request.urlopen(url).read()

print(response)

print() tree = ET.fromstring(response)

print(ET.tostring(tree, encoding='utf-8').decode('utf-8'))

 

Thank You

0 answers

Suggest an answer

Log in or Sign up to answer