Unable to load the following language file:
/lang.ano_xml_parser.php
I have waited long time for xml_walk as I do a lot of xml stuff. Trying the above, the zip file is missing the lang file. Looking forward to trying it, I have been using php5 which is awesome, and the original magpie parser which handles anything pretty well, but this as a module looks very good.
Overview
- This plugin will parse a valid remote XML-based file and return entries as EE variables to be used in your EE template.
- This parser will also work as a RSS reader but channel information will be omitted.
- XML data are cached in database to improve performance.
- Cached data can be monitored in Module Control panel.
- You should use the W3C tool (XML Validator) to validate your XML data feed. - Within each child node, no identical element name is allowed at the same level.
- PHP CURL (Client URL library) is required on web server to run this module.
- This light-weight parser may not work with very large or deep-nested XML files.
- Feel free to customize this module to suit your needs. I only implement it in the most basic way to deal with my XML project on hand.
—-
So the answer is a unfortunately no. You can add logics in the area where the tag names are constructed by appending like _1, _2 for duplicated names. That should do the trick but do need some development works.
Ugh that really blows. The plugin does exactly what i want but I have no control over the XML file. I’m using Gdata as a service and all of their xml files have identical element names at the same level.
Hey Arnold. Do you (or anyone!) know why I get this:
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/deadfrog/public_html/system/modules/ano_xml_parser/mod.ano_xml_parser.php on line 101
Hey Arnold. Do you (or anyone!) know why I get this:
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/deadfrog/public_html/system/modules/ano_xml_parser/mod.ano_xml_parser.php on line 101
Hi Andy,
This is a harmless warning. I don’t recall the exact cause now. I experienced the same issue with a site hosting on EngineHosting. I just muted the error and everything works fine.
Thanks for posting this module, it does exactly what I need. The only small issue I have is that if the XML file is not found or the XML is invalid PHP error messages are echo’d to the page, breaking the layout.
Is there an easy way to alter the module to have it fail silently? Sorry I’m not very familiar with PHP.
It would be perfect if it would fail silently or just output a simple error to the page.