What I want to do is create links for my site according to an XML document. example:
<menu>
<item>
<name>Menu Item One</name>
<itemurl>folder\location\page.php</itemurl>
<caption>This text to be applied to the 'title' attribute</caption>
</item>
...
</menu>
I want each 'item' to be a link on the site. The menu will be its own page incorporated into the site with the 'include' function. This way, I just edit the XML file to add/remove menu items. If I need to format the XML differently is not a big deal, especially if it can be done easier than what I am thinking. I want the navigation menu to be at the very top of the page inside a table with only a single row and each link inside its own datacell. For test purposes, all of the files will be in a common folder; index.php (includes the menu.php), menu.php, menu.xml... I am not sure what other information is needed.
The outcome for each item should ideally be something like:
<td class="menuitem">
<a href=$ItemURL title=$Caption>$ItemName</a>
</td>
ANY help on this topic would be greatly appreciated. I have found some text on PHP and XML but cannot figure out this specific task. Sorry to all moderators if I have mis-posted somehow.
I have experienced the same error. However, when I tried to replace Android version to use when rendering layouts in eclipse to lower API level, my graphical layout can be viewed and edited just fine. Try to support lower API version such as API 18: Android 4.3.1.
ReplyDeleteRegards,