Topic: IF stament inside xml file, is that possible?? (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=32178" title="Pages that link to Topic: IF stament inside xml file, is that possible?? (Page 1 of 1)" rel="nofollow" >Topic: IF stament inside xml file, is that possible?? <span class="small">(Page 1 of 1)</span>\

 
jmhc
Paranoid (IV) Inmate

From: Santo Domingo, DN, Dominican Republic
Insane since: Feb 2002

IP logged posted posted 04-16-2011 16:39 Edit Quote

Greetings:

Can I use if staments inside xml file???

Here is a sample of my xml file, this is a slideshow code for a swf file. What I want to do is to set this xml file so that when I switch pages the properties of the sildeshow and the images changes.

<?xml version="1.0" encoding="iso-8859-1"?>


<slideshow displayTime="5"
transitionSpeed="1"
transitionType="Fade"
motionType="None"
motionEasing="easeInOut"
randomize="true"
slideshowWidth="846"
slideshowHeight="350"
slideshowX="center"
slideshowY="0"
bgColor="333333"
bgOpacity="100"
useHtml="true"
showHideCaption="false"
captionBg="000000"
captionBgOpacity="40"
captionTextSize="10"
captionTextColor="FFFFFF"
captionBold="true"
captionPadding="3"
showNav="false"
autoHideNav="true"
navHiddenOpacity="100"
navX="497"
navY="158"
btnColor="FFCC00"
btnHoverColor="ffffff"
btnShadowOpacity="70"
btnGradientOpacity="20"
btnScale="120"
btnSpace="10"
navBgColor="333333"
navBgAlpha="0"
navCornerRadius="0"
navBorderWidth="0"
navBorderColor="00000000"
navBorderAlpha="0"
navPadding="5"

tooltipSize="8"
tooltipColor="000000"
tooltipBold="true"
tooltipFill="FFFFFF"
tooltipStrokeColor="000000"
tooltipFillAlpha="80"
tooltipStroke="0"
tooltipStrokeAlpha="0"
tooltipCornerRadius="8"

loaderWidth="200"
loaderHeight="1"
loaderColor="FF0000"
loaderOpacity="100"

attachCaptionToImage="true"
imageScaling="fill"
slideshowMargin="0"
showMusicButton="false"
music=""
musicVolume="100"
musicMuted="true"
musicLoop="true"
watermark=""
watermarkX="625"
watermarkY="30"
watermarkOpacity="100"
watermarkLink=""
watermarkLinkTarget="_blank"
captionsY="bottom"
>

<image img="Animation/image1.jpg"/>
<image img="Animation/image2.jpg"/>


</slideshow>

Blaise
Paranoid (IV) Inmate

From: London
Insane since: Jun 2003

IP logged posted posted 04-18-2011 10:53 Edit Quote

XML is just a data store, like a database or simple text file, there should be no procedural code inside it, instead you should reorganise your data into separate 'pages' which are pulled depending on what page you've loaded on your site.

templar654
Paranoid (IV) Inmate

From: Shit scared in a Yellow Submarine
Insane since: Apr 2004

IP logged posted posted 01-21-2012 19:39 Edit Quote

Don't know if this is relevant but I do recall attempting to write PHP in a CSS file with some slight changes to the .htaccess file. It worked quite easy you have the server parse the CSS files for code besides the CSS so I got statements working there perhaps there is a way of doing it for XML. Then again I might be totally wrong as I'm not that familiar with XML :/

------------------------------------------------
Soft Kitty Warm Kitty, Little Ball of Fuuuuuur
Happy Kitty Sleepy Kitty Purr Purr Purr



Post Reply
 
Your User Name:
Your Password:
Login Options: Remember Me On This Computer
 
Your Text:
Loading...
Options: Show Signature
Enable Slimies
Enable Linkwords

« BackwardsOnwards »

Show Forum Drop Down Menu