Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2009-08-20 19:41:32
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
[request] XML parsing Tool?
It would be awesome to have a plug-in like this for TXP.
Offline
Re: [request] XML parsing Tool?
None of the RSS-parser plugins work for you? If so, try SimpleXML.
Offline
Re: [request] XML parsing Tool?
A few days ago, on Twitter, someone posted he would like to tinker with something like this: archiving xml with symphony.
I suggested him to begin by forking asv_tumblelog, which, as far as I understand, it lets you import XML (or RSS at least) to your database (more precisely, to the articles table).
Not sure, but I think asv_tumblelog is currently abandoned.
It would be cool to have something like this, which “converts” any services out there (like Flickr, Twitter) in an extension of Textpattern CMS. For example, if you publish pictures on Flickr, then the thing imports your Flickr entry, by automagically importing the image to your /images/ folder, and do the proper entry on the database (and of course, any other fields that are serverd on Flickr RSS).
On the other hand, all this “i wanna import contents I’ve published on the wild net to my site, so to keep them safe” may be a little OCD and at the end defeats the purpose of aggregating content from external sources.
Then, on the other (another) hand, it would be cool to do on the other direction. Publish to all those external services directly from Textpattern admin… We already have mem_twitter which does it for, well, Twitter….
But that’s another story and should be narrated on another occasion .
Offline
Re: [request] XML parsing Tool?
I know this thread is very stale, but I’m up against the same problem. Does anyone know how to get jk_parse_xml working? It looks like a great tool but I can’t get it to display any data. The link plugin is at http://forum.textpattern.com/viewtopic.php?id=21639
Offline
Re: [request] XML parsing Tool?
I don’t think jk_parse_xml parse xml into articles, rather you use it in an article to display the whole xml file in the article, or in a form or page to do the same.
I agree it would be great if you could have an external xml file which populates your articles and makes use of all the custom fields etc.
I have no idea if its possible (but normally everything is).
I am starting to look at using xml with php and ultimately the above is my goal… but I am a novice who has never made a txp plugin, so don’t hold your breath
Offline
Re: [request] XML parsing Tool?
Depending on the size of the received XML simplexml or DOM-XML could be to slow an the used memory could be exhausting. So it could be better using a streaming parsing method like XMLREADER. For the NRW Tourismusmagazin I wrote a plugin that uses the XML SOAP-API of hotel.info. The received XML is sometimes several megabytes – depending on the queried destination and arrival and departure date. For parsing of such a big file it’s better and faster to do this with XMLREADER.
You can test this at the hotel site. (it does only working with german cities)
If someone is really interessted in this plugin I can publish this plugin. But it will be completly unsupported and please note: It is fully adapted to my needs of the hotel.info SOAP XML so it’s probably worthless for your needs.
Last edited by trenc (2009-12-17 11:10:06)
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
Pages: 1