0

I receive an XML file with structure like this:

<items>
<item>
<id>...</id>
<title>...</title>
<image>...</image>
</item>
</items>

I normally use MagpieRss, but this feed is not a proper RSS, so $rss->items gives me an array of 10 (real number of items) empty elements.
How can I fetch the data, preferably with Magpie?
I use simpleXML now, but it is not the best option due to different formats of its output and Magpie's one. I had to rewrite all the following code to suit to both formats.

lvil
  • 4,326
  • 9
  • 48
  • 76

1 Answers1

0

Have you tried using Tidy to fix the XML before feeding it into Magpie?

whichdan
  • 1,897
  • 1
  • 14
  • 11
  • It won't help me as the structure is ok, the problem is that it is just not how rss should look like – lvil Jan 23 '12 at 09:48