raevol | anyone done stuff with XML? as in, pulled data off a web service in XML format? | 18:45 |
---|---|---|
blitz | I've worked with xml | 18:47 |
blitz | at my last job that's how we passed data between services | 18:47 |
raevol | so, if i have a web service that will serve me data as an xml, and i need to get that data into a database, should i just write a script that fetches that URL periodically, parses the data, and sends any updates to the database? | 18:52 |
pleia2 | yeah, and most programming languages already have xml parsers as modules or libraries so it's not too hard | 19:06 |
blitz | we kind of had a REST like interface, when you retrieved from the db, you'd get the xml representation of the data, and then if you modified it on the page and hit save you send an xml request back to the back end that parses it and updates the database | 19:17 |
raevol | cool, ok | 19:25 |
raevol | yea my problem is that i interact with my database by emailing it | 19:25 |
raevol | i need to read the XML, parse it, and send emails a la https://oss.trac.surfsara.nl/email2trac | 19:26 |
darthrobot | Title: [email2trac] | 19:26 |
raevol | i'll figure it out though, i've just never messed with XML before so i wanted to make sure i am approaching at least the reading part of it right | 19:26 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!