What are my options to parse external XML feeds and to display the extracted data on my own custom page?

Example XML: http://w3schools.com/xml/simple.xml

Is this something that can be done using CCK/View? I did a quick search but couldn't find a concrete answer.

Comments

cheshireinatree’s picture

A bit more information about what exactly your looking to do would be helpful, but yes, there are a number of xml tools available.

FeedAPI is my parser of choice - http://drupal.org/project/feedapi

Feed Element Mapper is a useful addition - http://drupal.org/project/feedapi_mapper

Aggregation module is also being actively maintained but, at least the last time I checked, was not as robust and is more geared to standard rss feeds. - http://drupal.org/project/aggregation.

If this isn't the direction you're going, reply with a few more details.

arnoldc’s picture

Thanks for referring to such wonderful module. It looks very powerful and flexible like CCK/Views and naturally, it takes time to learn, especially documentation is on the thin side as with most open-source modules.

My question is that it works fine with standard RSS/Atom feeds, but not regular XML files like the one I showed earlier. http://w3schools.com/xml/simple.xml

I haven't digged SimplePie parser yet but look like they all only take standard RSS/Atom feeds, not regular XML files.... I need a regular XML parser, am I missing something important here.

WorldFallz’s picture

I haven't tried it yet, but maybe the http://drupal.org/project/querypath module?

arnoldc’s picture

Thanks WorldFallz,

Just installed the module and tried the sample feeds, look like a good library module. It should address my immediated need by writing my own feed module based on this. In the long term, hopefully, someone would create a custom parser plugin for FeedAPI.

WorldFallz’s picture

Looks like the work has already started: http://drupal.org/project/feedapi_eparser. Looks promising.

rbrownell’s picture

Hi;

I've been poking around for a solution to this same problem (mind you the XML tags are more extensive) but I am wondering, have you had any luck?

Thanks;

-Ryan