Sorry, about this. I have been searching for a work around for this for a few hours now
(self taught HTML CSS etc)
I have build a web page designed to act as a shop for people to book excursions that i run.
I would like to create XML files that will connect with HTML pages so that they can populate data into the page (to save me from editing the HTML everytime.
I can find examples for photos but nothing for text (the info should not be displayed in a table)
here is what I have so far. I have copied this from a web tutorial, I got it doing what I wanted within the W3 schools 'app' but have applied it to this. I am unsure as to what the 0's mean in the script part.
THANKS AGAIN
SCRIPT
<script type="text/xml" src="checking.xml">
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","checking.xml",false);
xmlhttp.send();
xmlDoc=xmlhttp.responseXML;
document.getElementById("TRIPINFO").innerHTML=
xmlDoc.getElementsByTagName("DATE")[0].childNodes[0].nodeValue;
document.getElementById("TRIPINFO").innerHTML=
xmlDoc.getElementsByTagName("DESTINATION")[0].childNodes[0].nodeValue;
document.getElementById("TRIPINFO").innerHTML=
xmlDoc.getElementsByTagName("DESC")[0].childNodes[0].nodeValue;
document.getElementById("TRIPINFO").innerHTML=
xmlDoc.getElementsByTagName("PRICE")[0].childNodes[0].nodeValue;
</script>
HTML
<p class="destpictext">
<span style="background-color:#2f2fae" id="DATE"> </span> <br />
<span style="background-color:#2f2fae"id="DESTINATION"> </span> <br />
<span style="background-color:#2f2fae" id="DESC"> </span> <br />
<span style="background-color:#2f2fae" id="PRICE"> </span> </p>
</div>