Hey ,thanks for the plugin but I am having trouble adding external file with the plugin.I have a navigation.html file and this navigation file includes an xml file
‘xmlfile.xml’ the navigation.hmtl file code is,
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<?php $str= '<th class="s1">Select chapter</th> <th class="s2"><select onchange="location=this.value;" > <option selected>Select</option>' ; $xml=simplexml_load_file("mysite.com/folder123/Rainbow/xmlfile.xml"); <!--line 7 --> foreach( $xml->children() as $books ) { $str.='<option value="../'.$books->link.'" >'.$books->chapt.'</option>'; } echo $str.'</select></th>' ; ?> |
and the xmlfile.xml file code is
1 2 3 4 5 6 7 8 9 10 11 |
<?xml version="1.0" encoding="utf-8"?> <chapter_list> <list> <link>rainbow_pearl/</link> <chapt>Pear 8</chapt> <view>0</view> ... </list> </chapter_list> |
so I try to include the navigation.html file
[includeme file="folder123/Rainbow/navigation_file.html"]
I run the preview and I get the error,
“Warning: simplexml_load_file(): </html> in /home1/mangaall/public_html/folder123/Rainbow/navigation_file.html on line 7
Warning: simplexml_load_file(): ^ in /home1/mangaall/public_html/folder123/Rainbow/navigation_file.html on line 7
…”
There are more error messages.I have been using this plugin for like 3-4 months and it was working fine but suddenly I started getting these messages and it is giving me a lot of trouble since I have already made my site live.
Any quick help and response will be grateful cause my site is live already.