<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Generating XML using CMS</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Generating-XML-using-CMS-69432</link>
        <description></description>
        <pubDate>Fri, 14 Aug 2026 08:57:36 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Generating-XML-using-CMS-69432" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: [meg] Generating XML using CMS</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2194926#post2194926</link>
          <description><![CDATA[Hi Meg,<br /><br />It might be quickest if I could just take a look at the code directly.  If that works for you just email CMS and FTP login details to dave@interactivetools.com (email, don't post login details to the forum).  And also include the url to the plain text xml file that is working, the php version that isn't, and the flash page that displays them.<br /><br />I'll post back here or via email with the solution. Hope that helps!<br />]]></description>
          <pubDate>Sat, 27 Dec 2008 18:22:46 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2194926#post2194926</guid>
        </item>
                <item>
          <title>Re: [Dave] Generating XML using CMS</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2194904#post2194904</link>
          <description><![CDATA[Hi Dave,<br /><br />The plain text .xml file is working fine. Here is a sample of it:<br /><br />&lt;?xml version=&quot;1.0&quot;?&gt;<br />&lt;config&gt;<br />	&lt;baseurl&gt;/images/&lt;/baseurl&gt;<br />	&lt;fadetime&gt;2&lt;/fadetime&gt;<br />	&lt;showtime&gt;3&lt;/showtime&gt;<br />	&lt;window&gt;_top&lt;/window&gt; <br />	&lt;randomorder&gt;true&lt;/randomorder&gt;<br />	&lt;texts&gt;true&lt;/texts&gt;<br />	&lt;movingtext&gt;true&lt;/movingtext&gt;<br />	&lt;mouseover&gt;true&lt;/mouseover&gt;<br />	&lt;textposition&gt;2&lt;/textposition&gt;<br />		<br />	&lt;image&gt;		<br />		&lt;url&gt;2647082839_49ce52e3af_b_002.jpg&lt;/url&gt;<br />		&lt;caption&gt;boat&lt;/caption&gt; <br />	&lt;/image&gt;<br />        &lt;image&gt;		<br />		&lt;url&gt;2593699391_5d6e065f8b_b.jpg&lt;/url&gt;<br />		&lt;caption&gt;boat&lt;/caption&gt;<br />	&lt;/image&gt;<br />&lt;/config&gt;<br /><br />Even when I changed the file to a xml.php with the heading <br />&lt;?php echo('&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;'); ?&gt; <br />and using the same code as above, the gallery works. <br /><br />When I change the caption to:<br />&lt;caption&gt;&lt;?php echo $upload['info1']?&gt;&quot;&lt;/caption&gt;<br />This error occurs:<br />undefined variable:upload in data/home/etc... (the directory path to the config.xml.php file)<br /><br />How can I have it display the caption text?<br /><br />Regarding the image url in the xml, whenever it switch the code to this (see below) I just get a black screen within the swf.<br /><br />&lt;?php echo('&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;'); ?&gt; <br />&lt;?php<br /><br />  require_once &quot;/data/home/url name/docs/cms/lib/viewer_functions.php)&quot;;<br /><br />  list($artistRecords, $artistMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'artist',<br />    'where'       =&gt; whereRecordNumberInUrl(1),<br />    'limit'       =&gt; '1',<br />  ));<br />  $artistRecord = @$artistRecords[0]; <br /><br />?&gt;<br />&lt;config&gt;<br />	&lt;baseurl&gt;/images/&lt;/baseurl&gt;<br />	&lt;fadetime&gt;2&lt;/fadetime&gt;<br />	&lt;showtime&gt;3&lt;/showtime&gt;<br />	&lt;window&gt;_top&lt;/window&gt; <br />	&lt;randomorder&gt;true&lt;/randomorder&gt;<br />	&lt;texts&gt;true&lt;/texts&gt;<br />	&lt;movingtext&gt;true&lt;/movingtext&gt;<br />	&lt;mouseover&gt;true&lt;/mouseover&gt;<br />	&lt;textposition&gt;2&lt;/textposition&gt;<br />&lt;?php foreach ($artistRecords['uploads'] as $upload): ?&gt; <br />	&lt;image&gt;		<br />		&lt;url&gt;&lt;?php echo $upload['urlPath']; ?&gt;&lt;/url&gt;<br />		&lt;caption&gt;&lt;?php echo $upload['info1']?&gt;&quot;&lt;/caption&gt;<br />	&lt;/image&gt;	<br />    &lt;?php endforeach; ?&gt; <br />&lt;/config&gt;<br /><br />Instead of referencing a URL, &lt;url&gt;&lt;?php echo $upload['urlPath']; ?&gt;&lt;/url&gt; is referencing the directory path and the XML can't reference the directory path. Again, I'm uploading the images in the CMS to the original folder that the regular .xml was using. In regards to the caption, it states undefined variable. I'm not as clear how to handle this. <br /><br />What are your thoughts?<br />I attached a sample of the swf file as well. The folder tree goes as such: <br /><br />swf<br />config.xml.php<br />images (folder)<br /><br />Please help! javascript:%20addTag(':/')<br />]]></description>
          <pubDate>Tue, 23 Dec 2008 18:09:19 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2194904#post2194904</guid>
        </item>
                <item>
          <title>Re: [meg] Generating XML using CMS</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2194901#post2194901</link>
          <description><![CDATA[Hi meg,<br /><br />Can you give an example of the lines that it's outputting now (just the ones you want to change), and what you want it to output instead?  Once I have that I can give you some code to generate that.<br /><br />Also, while debugging the xml, it's a good practice to get it working with a plain text .xml file first, then once you know it's working, have CMS Builder generate an xml file that looks the same.  It makes it easier to track down problems.<br /><br />Hope that helps, let me know about the output.<br />]]></description>
          <pubDate>Tue, 23 Dec 2008 16:56:04 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2194901#post2194901</guid>
        </item>
                <item>
          <title>Re: [Dave] Generating XML using CMS</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2194892#post2194892</link>
          <description><![CDATA[Hi Dave. <br /><br />I seem to be having a problem with my XML gallery with the CMS and I believe I narrowed it down. My XML is looking for a URL, while the CMS referencing the file path in the file system. How do I correct for this?<br /><br />I changed the upload field directory to the folder where I originally put my photos to test the gallery. (If I switch my XML to read just the file name, I can view the gallery just fine.) Is it possible to modify the php so it just reads the file name? And in regards to the caption, what should I do? I'm experiencing the same problem with the caption URL vs. file path.<br /><br />Here's a sample of my xml code:<br /><br />&lt;?php echo('&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;'); ?&gt; <br />&lt;?php<br /><br />  require_once &quot;/data/home/riverschoolboats/websites/riverschoolboats.com/docs/cms/lib/viewer_functions.php&quot;;<br /><br />  list($artistRecords, $artistMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'artist',<br />    'where'       =&gt; whereRecordNumberInUrl(1),<br />    'limit'       =&gt; '1',<br />  ));<br />  $artistRecord = @$artistRecords[0]; <br /><br />?&gt;<br />&lt;config&gt;<br />	&lt;baseurl&gt;/images/&lt;/baseurl&gt;<br />	&lt;fadetime&gt;2&lt;/fadetime&gt;<br />	&lt;showtime&gt;3&lt;/showtime&gt;<br />	&lt;window&gt;_top&lt;/window&gt; <br />	&lt;randomorder&gt;true&lt;/randomorder&gt;<br />	&lt;texts&gt;true&lt;/texts&gt;<br />	&lt;movingtext&gt;true&lt;/movingtext&gt;<br />	&lt;mouseover&gt;true&lt;/mouseover&gt;<br />	&lt;textposition&gt;2&lt;/textposition&gt;<br /><br />        &lt;?php foreach ($artistRecords['uploads'] as $upload): ?&gt; <br />	&lt;image&gt;		<br />		&lt;url&gt;&lt;?php echo $upload['urlPath']; ?&gt;&lt;/url&gt;<br />		&lt;caption&gt;&lt;?php echo $upload['info1']?&gt;&quot;&lt;/caption&gt;<br />	&lt;/image&gt;	<br />    &lt;?php endforeach; ?&gt; <br />&lt;/config&gt;<br /><br />Also, if I plan on uploading multiple images to this gallery, do I need to repeat this code to match the desired number of photos per gallery, or will it generate multiple images with this code appearing once?<br /><br />	&lt;image&gt;		<br />		&lt;url&gt;&lt;?php echo $upload['urlPath']; ?&gt;&lt;/url&gt;<br />		&lt;caption&gt;&lt;?php echo $upload['info1']?&gt;&quot;&lt;/caption&gt;<br />	&lt;/image&gt;<br />]]></description>
          <pubDate>Tue, 23 Dec 2008 10:03:50 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2194892#post2194892</guid>
        </item>
                <item>
          <title>Re: [Dave] Generating XML using CMS</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2194736#post2194736</link>
          <description><![CDATA[Halleleujah!!! It works now - God Bless You!<br />]]></description>
          <pubDate>Mon, 15 Dec 2008 17:24:56 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2194736#post2194736</guid>
        </item>
                <item>
          <title>Re: [benedict] Generating XML using CMS</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2194732#post2194732</link>
          <description><![CDATA[Hi Benedict,<br /><br />The way that viewer is coded it will load the record number from the end of the url.  So if the server is adding &quot;noCache=1229302787177&quot; on the end it will try to load record 1229302787177 which won't exist.<br /><br />Make sure when you load the XML file you pass the record number you want to load with something like:<br /><br />.../slideshow.php?&lt;?php echo $record['num'] ?&gt;<br /><br />Or if there is only one record in the section you can _remove_ this line so it just loads the first record:<br /><br />    'where'       =&gt; whereRecordNumberInUrl(1), <br /><br />Hope that helps, let me know what happens.<br />]]></description>
          <pubDate>Mon, 15 Dec 2008 16:03:28 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2194732#post2194732</guid>
        </item>
                <item>
          <title>Re: [Dave] Generating XML using CMS</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2194722#post2194722</link>
          <description><![CDATA[Interstingly if I change the links to be absolute (by adding the http:// + url in the section editor that creates the XML) then in Flash, when I publish the file, it works locally. But again, when I upload it, it does not work. That tells me that the actual XML is correct, but its delivery is not.<br /><br />I then found one thing which may be an issue in the logs in Safari when it loads the page - <br /><br />http://esvc000159.wic032u.server-web.com/slideshow.php?noCache=1229302787177<br /><br />Not sure why it is adding this code to the end of slideshow.php, but when I follow that URL, it states:<br /><br />Warning: Invalid argument supplied for foreach() in e:\inetpub\esvc000159\slideshow.php on line 15.<br /><br />Here is my code again in slideshow.php:<br /><br />&lt;?php header('Content-type: application/xml; charset=utf-8'); ?&gt; <br />&lt;?php<br />  <br />  require_once &quot;e:/inetpub/esvc000159/cmsAdmin/lib/viewer_functions.php&quot;;<br /><br />  list($home_pageRecords, $home_pageMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'home_page',<br />    'where'       =&gt; whereRecordNumberInUrl(1),<br />    'limit'       =&gt; '1',<br />  ));<br />  $home_pageRecord = @$home_pageRecords[0]; // get first record<br /><br />?&gt;<br />&lt;slideshow randomDisplay='false'&gt;<br />&lt;?php foreach ($home_pageRecord['banner'] as $upload): ?&gt;<br />	<br />	&lt;image src='http://esvc000159.wic032u.server-web.com&lt;?php echo $upload['urlPath'] ?&gt;' link='&lt;?php echo $upload['info1'] ?&gt;' inEffect='Fade in' outEffect='Fade out'&gt;<br />		&lt;caption&gt;No caption&lt;/caption&gt;<br />	&lt;/image&gt;<br />	<br />   &lt;?php endforeach ?&gt;<br />&lt;/slideshow&gt;<br /><br />Does this shed any light on the matter?<br />]]></description>
          <pubDate>Sun, 14 Dec 2008 20:07:55 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2194722#post2194722</guid>
        </item>
                <item>
          <title>Re: [benedict] Generating XML using CMS</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2194673#post2194673</link>
          <description><![CDATA[Hi benedict,<br /><br />It looks like valid XML to me.  I ran it through a few validators as well.  What do the flash components do when you tell them to use it?  Does it work when you save the output from slideshow.php as slideshow.php.xml and direct them to that?<br /><br />Let me know what happens.<br />]]></description>
          <pubDate>Thu, 11 Dec 2008 18:20:03 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2194673#post2194673</guid>
        </item>
                <item>
          <title>Re: [Dave] Generating XML using CMS</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2194621#post2194621</link>
          <description><![CDATA[Still not working in 2 different projects I am working on (one an XML flash calendar, the other using Autofeeder Pro from Flashloaded.com). This is in spite of the fact that if you visit the xml page I am generating with my PHP (http://esvc000159.wic032u.server-web.com/slideshow.php) it is appearing perfectly. <br /><br />I have sent 'Loaded a note and will keep you posted.<br /><br />FYI, here is the viewer code I am using to create the above:<br /><br /><code>&lt;?php header('Content-type: application/xml; charset=utf-8'); ?&gt; <br />&lt;?php  require_once &quot;e:/inetpub/esvc000159/cmsAdmin/lib/viewer_functions.php&quot;;<br /><br />  list($home_pageRecords, $home_pageMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'home_page',<br />    'where'       =&gt; whereRecordNumberInUrl(1),<br />    'limit'       =&gt; '1',<br />  ));<br />  $home_pageRecord = @$home_pageRecords[0]; // get first record<br /><br />?&gt;<br />&lt;slideshow randomDisplay='false'&gt;<br />&lt;?php foreach ($home_pageRecord['banner'] as $upload): ?&gt;<br />	<br />	&lt;image src='&lt;?php echo $upload['urlPath'] ?&gt;' link='&lt;?php echo $upload['info1'] ?&gt;' inEffect='Fade in' outEffect='Fade out'&gt;<br />		&lt;caption&gt;No caption&lt;/caption&gt;<br />	&lt;/image&gt;<br />	<br />   &lt;?php endforeach ?&gt;<br />&lt;/slideshow&gt;</code><br />]]></description>
          <pubDate>Wed, 10 Dec 2008 01:49:40 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2194621#post2194621</guid>
        </item>
                <item>
          <title>Re: [benedict] Generating XML using CMS</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2194608#post2194608</link>
          <description><![CDATA[Hi Benedict,<br /><br />Some php installs think anything in &lt;? ?&gt; tags is PHP code, including &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; <br /><br />There's a few tricks to show it including yours:<br />&lt;?php echo('&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;'); ?&gt; <br /><br />Or this one:<br />&lt;&lt;?php ?&gt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br /><br />And yes, you should have your flash file call events.php (or name it events.xml.php to make it even more clear).  It won't care about the file extension, just the content header that is sent.  You can send an xml header like this.  Just put this code at the top:<br /><br />&lt;?php header('Content-type: application/xml; charset=utf-8'); ?&gt;<br /><br />Hope that helps, let me know if you have any more questions.  If you're still getting an error let me know what it is or post a link.<br />]]></description>
          <pubDate>Tue, 09 Dec 2008 16:08:48 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2194608#post2194608</guid>
        </item>
                <item>
          <title>Re: [Dave] Generating XML using CMS</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2194601#post2194601</link>
          <description><![CDATA[Hi Dave,<br /><br />I am doing the same thing here. I have made my viewer identical to the xml file. 2 Things I'm struggling with:<br /><br />1. In the viewer (&quot;events.php&quot;), I get an error when using the declaration:<br />&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br /><br />I presume this is because of punctuation in there? I have tried:<br /><br />&lt;?php echo('&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;'); ?&gt;<br /><br />But still no luck. Any idea what that should be?<br /><br />2. In my flash file, I presume I should change all reference to &quot;events.xml&quot; to &quot;events.php&quot; correct? Or should my viewer have its name changed to a .xml file? Is that allowed?<br /><br />Thanks.<br />]]></description>
          <pubDate>Tue, 09 Dec 2008 14:58:05 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2194601#post2194601</guid>
        </item>
                <item>
          <title>Re: [meg] Generating XML using CMS</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2194559#post2194559</link>
          <description><![CDATA[Hi Meg,<br /><br />Yes, there is.  Here's the steps:<br /><br />- Create a static xml file with some sample images and get it working with your flash gallery.<br /><br />- Create a php viewer with CMS Builder that outputs XML like your xml file.<br /><br />- View source on the static (hard coded) and dynamic (cms driven) versions and make changes until the dynamic one looks almost exactly like the static one.<br /><br />- Switch your flash gallery to use the dynamic CMS xml instead and see if it works.<br /><br />Give it a try and let me know how far you get.<br /><br />Hope that helps!<br />]]></description>
          <pubDate>Fri, 05 Dec 2008 19:19:28 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2194559#post2194559</guid>
        </item>
                <item>
          <title>Re: [Dave] Generating XML using CMS</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2194539#post2194539</link>
          <description><![CDATA[Thanks Dave. I'm looking to connect the CMS to an XML file which connects to a Flash Gallery. Is there a way to use your photo gallery portion of the CMS to connect to this XML file? <br /><br />The functions I need for this gallery CMS section:<br />-Upload control panel<br />-Information for the XML file: URL of the image, Caption (text box)<br />-Ideally, I would love to set parameters on file size and pixel width (as your CMS gallery offers)<br /><br />XML sample:<br />&lt;image&gt;<br />&lt;url&gt;image_file_name.jpg&lt;/url&gt;<br />&lt;caption&gt;Photo Caption Goes Here&lt;/caption&gt;<br />&lt;/image&gt;<br /><br />What's the best way to achieve this? Is there a fairly simple solution?<br />Thanks so much!<br /><br />Meg<br />]]></description>
          <pubDate>Fri, 05 Dec 2008 15:58:56 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2194539#post2194539</guid>
        </item>
                <item>
          <title>Re: [meg] Generating XML using CMS</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2194334#post2194334</link>
          <description><![CDATA[Hi Meg,<br /><br />There is ways to make .xml files run as PHP and still output XML content.  But for most part applications don't care what the file extension is, they care what the &quot;Content-type&quot; header you send is.  <br /><br />It doesn't show in your browser, but anytime you request a file or image from the server it sends a line that says what kind of content it's sending.<br /><br />For XML files, add this to the top of your script:<br />&lt;?php header('Content-type: application/xml; charset=utf-8'); ?&gt;<br /><br />And you can name your script with .xml.php so it runs as a php app but the .xml. makes it easy to remember that it actually outputs xml.<br /><br />For an example see our doc page on creating an XML RSS feed with CMS Builder:<br />http://www.interactivetools.com/docs/cmsbuilder/rss_feeds.html<br /><br />Hope that helps!<br />]]></description>
          <pubDate>Thu, 20 Nov 2008 14:44:26 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2194334#post2194334</guid>
        </item>
                <item>
          <title>Generating XML using CMS</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2194328#post2194328</link>
          <description><![CDATA[I have a website that contains flash XML components (a text box and image gallery). I did some brief reading through your forum and is it true that you have to convert the XML to a PHP document or is there a way to add a script to the XML document so I don't have to change the file extension? <br /><br />Either way, is there a different type of code that I should use to accomplish this?<br />Please advise.<br />Thanks!<br />]]></description>
          <pubDate>Thu, 20 Nov 2008 03:41:48 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2194328#post2194328</guid>
        </item>
              </channel>
    </rss>
  