On the demo site I created a new feed type and added an url with the example file below.
It responded with a warning.
The url has a valid xml source file. e.g. http://www.exodus.co.uk/xml/aaa.xml
as per the file snippet below....
I realise this is not an RSS/Atom etc. feed so my question is, given that the feedapi loads, parses and processes XML and DTD is a subset of XML and that PHP5 simpleXML supports DTD what is it that one has to do to get it to read this type of file? Can you please point me in the right direction?
Do I need to create a new parser for DTD?
Example file:
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE holiday SYSTEM "DTD/holiday.dtd">
<holiday code="AAA" new="No" gayp="No">
<name><![CDATA[PATAGONIAN HIGHLIGHTS]]></name>
<grade><![CDATA[]]></grade>
<region><![CDATA[Americas]]></region>
<countries>
<country><![CDATA[Argentina]]></country>
</countries>
<activities>
<activity><![CDATA[Waterfalls]]></activity>
<activity><![CDATA[Glaciers]]></activity>
<activity><![CDATA[Marine Wildlife]]></activity>
</activities>
<brochures type="UK Agents">
.......</snip>
Comments
Comment #1
aron novakYes, you should create a new parser for it if you'd like to achieve FeedAPI processing this. (but only a new parser, it's not a big deal to write one, especially if you rely on simpleXML)
Now there is an updated developer's guide here: http://groups.drupal.org/node/5301
Please let me know is something is vague in the guide.
Comment #2
mustafau commentedComment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.