Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 57

Kristian_N
Code is Art
Profile
Posts: 91
Reg: Oct 27, 2011
Copenhagen
2,610
01/24/15 02:50 PM (9 years ago)

How to show data stored in an XML file on a page in an app?

Hi, I have an interesting challenge, which some of you may already know how to solve, so please help me a bit as I do not know much about XML. For a sports event, results will be shown on a website and updated frequently. I want to build an app that shows the same data. I have a copy of the xml-file holding the data and I will be given access to the site where the file is hosted. Does a plug-in exist that will allow me to show this data? I am thinking about Chris1's Easy Form but not sure if it will work... Can you please suggest a plugin that can do this job? Kind regards and huge kudos' to all of you! Kristian
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
01/24/15 04:37 PM (9 years ago)
You need to parse the XML of course.sounds like a RSS feed Rss feeds are in xml format.so you can probably use one of the RSS plugins and depending on your XML format you could change the code to parse it accordingly.
 
Kristian_N
Code is Art
Profile
Posts: 91
Reg: Oct 27, 2011
Copenhagen
2,610
like
01/25/15 12:07 PM (9 years ago)
Thanks! It's the parse thing that bothers me :) And no, it is not an RSS feed so I doubt the RSS reader will be able to understand it. I will of course try and let you know.
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
01/26/15 03:40 AM (9 years ago)
Have you a had a look at Yahoo pipes? https://pipes.yahoo.com/pipes/ You can covert xml, json, rss and a whole lot more. Might be worth a look?? Cheers Darrel
 
Kristian_N
Code is Art
Profile
Posts: 91
Reg: Oct 27, 2011
Copenhagen
2,610
like
01/26/15 06:42 AM (9 years ago)
Hi Darrel, Thanks, this may be a good start! I will look into it! Kristian
 
Kristian_N
Code is Art
Profile
Posts: 91
Reg: Oct 27, 2011
Copenhagen
2,610
like
01/26/15 06:46 AM (9 years ago)
Hi again, My data looks like this: -<Regatta> <Event>10</Event> <RegattaNumber>1</RegattaNumber> <Boat>K1</Boat> <Distance>1000</Distance> <Category>5</Category> <Gender>M</Gender> <Type>1st Heat</Type> <RegattaName>K1 Jun Men</RegattaName> <Plan>B</Plan> <Date>26/06/2014</Date> <Time>09:00:00</Time> <Obs>1st to final A, 2/7 to semifinal, rest out.</Obs> </Regatta> I also have a non-static file that will show the individual results, i.e. after each race the results are uploaded to a website where i can pick them up. Regards, Kristian
 
ridgerock
Veteran developer
Profile
Posts: 183
Reg: May 19, 2011
Louisville
1,830
like
01/26/15 08:09 AM (9 years ago)
Sorry I can't offer a solution here...but I also have the same need. I even tried Yahoo Pipes without any luck.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.