Ik zit met een probleempje met een .xml bestand. Ik heb op me website een flash banner rotator staan, en de opmaak wordt uit het bestand data.xml gehaald. Nu wil ik graag de gegevens uit me database laden in me .xml bestand.
Dit is me .xml bestand.
- Code: Selecteer alles
<?xml version="1.0"?>
<Banner
bannerWidth=""
bannerHeight=""
textSize="14"
textColor=""
textAreaWidth=""
textLineSpacing="0"
textLetterSpacing="-0.5"
textMarginLeft="12"
textMarginBottom="5"
transitionType="4"
transitionDelayTimeFixed="2"
transitionDelayTimePerWord=".5"
transitionSpeed="8"
transitionBlur="yes"
transitionRandomizeOrder="no"
showTimerClock="yes"
showBackButton="yes"
showNumberButtons="yes"
showNumberButtonsAlways="no"
showNumberButtonsHorizontal="no"
showNumberButtonsAscending="yes"
autoPlay="yes"
>
<item image="images/featured/test1.jpg"
link="http://www.google.co.in/search?hl=en&q=1"
target="_blank"
textBlend="no"><![CDATA[Harry Potter and the deathly hallows<BR>Nieuwe trailer komt 26 februari</a>.
]]></item>
<item image="images/featured/test2.jpg"
link="http://www.google.co.in/search?hl=en&q=1"
target="_blank"
textBlend="no"><![CDATA[Harry Potter and the deathly hallows<BR>Nieuwe trailer komt 26 februari</a>.
]]></item>
</Banner>
De gegevens uit me database moet tussen dit stukje komen.
- Code: Selecteer alles
<item image="images/featured/test2.jpg"
link="http://www.google.co.in/search?hl=en&q=1"
target="_blank"
textBlend="no"><![CDATA[Harry Potter and the deathly hallows<BR>Nieuwe trailer komt 26 februari</a>.
]]></item>
Thanks alvast
