How do I create a PHP file that returns a list of nodes as XML when called if I have a menu structure like this:
<GalleryXML>
--gallery 1
---Item 1
---Item 2
---Item 3
And I want a url like localhost/getgallery.php
this url will then return my gallery as xml, something like this
<galleryXML>
<gallery name="gallery1">
<item name="item1">
<image>localhost/site/default/image1</image>
<imagethumb>localhost/site/default/image1</imagethumb>
<url>http://google.com</url>
<description>lorum ipsom</description>
</item>
</gallery>
</galleryXML>
Where Image
, Imagethumb
, url
and description
are fields on the item node
Thanks in Advance!