2013-11-10, 10:43:03
Can anyone help me with the format for the XML file for the Random Quotes plugin?
I can't get the plugin generate it's own initial XML file so am left trying to build one from scratch. It's almost working but not quite - very frustrating.
My XML so far looks like this:
I'm sure the quote id="300" shouldn't be there but if I delete that outer tag then it all fails. I've tried all sorts of combinations, but I'm not getting it. I've got only the very slightest idea about PHP and XML - just enough to get into trouble it seems!
When I go to edit Quotes in the GS Plugins control panel the editor opens and shows the quote in the list but throws up this:
Warning: Quotes::getQuotes(): Cannot assign to an array of nodes (duplicate subnodes or attr detected) in /home/packhoec/public_html/plugins/quote.php on line 145
I can't get the plugin generate it's own initial XML file so am left trying to build one from scratch. It's almost working but not quite - very frustrating.
My XML so far looks like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<quote id="300"><date>Sunday, 10 November, 2013</date><author>Author</author><quote id="1"><quote>The quote</quote><date>Sunday, 10 November, 2013</date><author>The next author</author><quote><![CDATA[The second quote]]></quote></quote></quote>
When I go to edit Quotes in the GS Plugins control panel the editor opens and shows the quote in the list but throws up this:
Warning: Quotes::getQuotes(): Cannot assign to an array of nodes (duplicate subnodes or attr detected) in /home/packhoec/public_html/plugins/quote.php on line 145