XML issue: no output

4 posts by 2 authors in: Forums > CMS Builder
Last Post: May 20, 2010   (RSS)

By s2smedia - May 20, 2010

Ive done xml.php beofre... but cant seem to get this one to work.. heres my code:

<?php header('Content-type: application/xml; charset=utf-8'); ?>
<?php

require_once "XXXXXX/cms/lib/viewer_functions.php";

list($homepageRecords, $homepageMetaData) = getRecords(array(
'tableName' => 'homepage',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$homepageRecord = @$homepageRecords[0]; // get first record


?>

<news>


<new Header="<?php echo $homepageRecord['header_message'] ?>" TextColor="0x536630" TextSize="19" TextBold="true" xPos="100" yPos="25" Effect="scaleY"></new>
</news>
<options>
<setup period ="3" glowColor="33CCFF"></setup>
</options>

Re: [s2smedia] XML issue: no output

By Jason - May 20, 2010

Hi,

Could you describe what seems to be going wrong?

Thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [s2smedia] XML issue: no output

By Jason - May 20, 2010

Could you attach a copy of your xml.php file as well as a link to it so I can see what the script is returning.

If you don't want to post this here, you can email me at jason@interactivetools.com

Thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/