Posts: 13
Joined: Feb 2013
Reputation:
1
I am new this environment. I am planing to make an addon from my xml file. Can anyone please help me how can I do it or give me an example.
Thank you in advance.
Posts: 3,430
Joined: Jan 2011
Reputation:
358
pkscout
Team-Kodi Member
Posts: 3,430
I don't understand what you're trying to do. Could you provide some more specifics. Are you trying to write an add-on that will display information from an XML file?
Posts: 13
Joined: Feb 2013
Reputation:
1
I don't understand what you're trying to do. Could you provide some more specifics. Are you trying to write an add-on that will display information from an XML file?
Hi pkscout,
I have an xml file and I want to make an addon out of this xml file. Yes I am trying to write an add-on that will display information from an XML file. Thank you for all your help
Posts: 43
Joined: Nov 2013
2013-12-04, 01:30
(This post was last modified: 2013-12-04, 01:30 by User 191275.)
What you'd want to do is to parse the XML file and then take the parsed data and send it to XBMC. Without more details about what you're trying to do, I don't think anyone can help you further. An XML file can contain pretty much anything, so there's no way for us to know what you want to do with its contents unless you tell us.
Posts: 3,430
Joined: Jan 2011
Reputation:
358
pkscout
Team-Kodi Member
Posts: 3,430
The one starter I can give is to look at xml.etree.ElementTree. That will allow you to parse an XML file and do whatever you'd like with it. As Pline said, without more specifics about what's in the XML file and how you'd like to display it, there's not much more help we (or I anyway) can give.
Posts: 65
Joined: Nov 2010
Reputation:
0
Look at the docs in this Forum! There is much stuff to read into.
I would also recommend ElementTree for XML Processing. What kind of info is in the xml? Media Links? then you should probably take a look at Urlresolver.
Cheers Nordish
Posts: 13
Joined: Feb 2013
Reputation:
1
Thank you guys I will do whatever you guys recommended.