bilbob Posted March 20, 2006 Share Posted March 20, 2006 Help please,I'm trying to learn XML. None of my XML is working and even the tutorials on w3schools don't appear to be working properly. I don't know if I'm doing something wrong, if my computer doesn't have the right extensions, etc.???I'm on a powerbook G4, 10.4 - I just ran software update and downloaded the new Java and osx updates. I've tried viewing in Safari, I.E. 5, and Mozilla/Firefox.This one for example returns no xml data:http://www.w3schools.com/xml/tryit.asp?fil...lhttprequest_vbOr this one, Title blank Artist: Blank Year: Blank: http://www.w3schools.com/xml/tryit.asp?filename=cd_firstThis one, no data appears inside the table like it's supposed to:http://www.w3schools.com/xml/tryit.asp?filename=cd_listAll these examples can be found here:http://www.w3schools.com/xml/xml_examples.aspAre these supposed to show the XML data? Are they a test to see if you know how to fix the code?!I've also tried uploading sample html and xml files to my server (that I found and were supposedly 100% correct) and they don't pull in the xml data.Am I missing something basic or stupid? Link to comment Share on other sites More sharing options...
boen_robot Posted March 20, 2006 Share Posted March 20, 2006 Maybe IE6 might do it, or are we talking completely MACs? Link to comment Share on other sites More sharing options...
bilbob Posted March 20, 2006 Author Share Posted March 20, 2006 I only have macs available to me. So that XML data does come in when you link?I've used XML in Flash Actionscript on the same set up and it worked. Trying to learn HTML with XML. But if it only works in IE6 I would think you're missing a significant audience. Link to comment Share on other sites More sharing options...
boen_robot Posted March 20, 2006 Share Posted March 20, 2006 Well, I know that XML files work in every major browser, including Safari, or if not- at least Firefox on MAC. However, there might be problems with the JS. Are you able to preview the XML file's source tree in the browser? If so, the problem IS truly JavaScript and XSLT must be used instead. Link to comment Share on other sites More sharing options...
JaredFish Posted March 29, 2006 Share Posted March 29, 2006 Well, I know that XML files work in every major browser, including Safari, or if not- at least Firefox on MAC. However, there might be problems with the JS. Are you able to preview the XML file's source tree in the browser? If so, the problem IS truly JavaScript and XSLT must be used instead.<{POST_SNAPBACK}> i have exactly the same problem, when trying the tutorial in Mozilla Firefox (v1.5.0.1) none of the XML comes through... i wrote my own html document and xml file, tested it in IE6 - perfect, soon as i use MFFox no data is read... i then uploaded the same files to my server and tried it and same result (IE=works! MFFox=nothing!)is there something wrong with this XML file?<?xml version="1.0" encoding="ISO-8859-1"?><whatsnew> <entry> <entry_date>23 March 2006</entry_date> <entry_title>Firefox problem</entry_title> <entry_body>still cant get firefox working</entry_body> </entry> <entry> <entry_date>22 March 2006</entry_date> <entry_title>Fixing the site</entry_title> <entry_body>the entry text goes here...</entry_body> </entry></whatsnew> this is the code for importing... <xml id="whatsnew" src="xmls/whatsnew.xml"></xml><table datasrc="#whatsnew"> <tr> <td><span datafld="entry_date"></span></td> <td><span datafld="entry_title"></span></td> </tr> <tr> <td colspan="2"><span datafld="entry_body"></span></td> </tr></table> Link to comment Share on other sites More sharing options...
boen_robot Posted March 30, 2006 Share Posted March 30, 2006 The wrong is that you have used Data Islands which are supported ONLY in IE6 scince they are not part of any W3C specification, but only Microsft's. That's different from bilbob's problem though, scince the examples he gives use JS, which is more supported. Link to comment Share on other sites More sharing options...
JaredFish Posted March 30, 2006 Share Posted March 30, 2006 Oh, okay... so data islands are the problem... okay thanx for letting me know...Either way i have managed to get a javascriptt o import what i need... i'l just remember to do XML tutorials in IE coz they dnt work for me in MozillaThanx agen Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now