XML File appears as plain text without tags on browser from localhost path - why ?
Posted by:
c0deMonkey2012
(---.range86-178.btcentralplus.com)
heres how it appears if I drag n drop the xml file onto the browser window
and heres how it appears if I try to run it under wamp, (i.e localhost/country.xml)
there must be a simple explanation behind it - which should make it clear why this is happening. If somebody knows, please get back to me on this asap.
This was an xml file created as part of some University coursework few years ago - I'm going over my old academic material for a refresher etc. I created an xsd and a dtd file against which to validate this xml file and it validates.
In a nutshell, the xml file holds information about ' Tour Packages ' in the United States. The root tag is 'country' , and a country is a complex type obviously.
Each Tour Package has a name based on the region of the USA you wish to vacate to, so in the screenshot above - the first package name is called 'East Coast Discovery' and it has its own airport destination, as well as a package price.
Each Tour Package encompasses a number of 'destinations' (under the tag 'destination') which in turn have their own sets of activity (basicaly sights, places, things to do etc)
Hopefully by viewing xml1.jpg everything will become self explanatory.
All I want to know is why does the 'tree structure' not appear when I run the xml file under localhost (wamp running) , and only when I drag n drop it out onto a seperate browser window pane.
What is causing this to happen and is there a way around this ?
I posted this issue earlier on tek-tips.com but may not have explained the issue or phrased it too well.
heres the link [
www.tek-tips.com]
please get to me on this asap folks
sincerest regards
c0deMonkey2012