PDA

View Full Version : Why does my XML only show up in IE?




D0ct0rteeth
Sep 6, 2004, 11:31 PM
Any ideas?

http://eternal.synergyprod.com/

<xml src="apparel/apparel.xml" id="apparel" async="false"></xml>
<br/><b>
<span datasrc="#apparel" datafld="APPAREL_TITLE"></span></b>
<br/><br>
<img src="/Images/2px_horz_rule_blue.gif" width="80" height="2"><br><br>
<span datasrc="#apparel" datafld="APPAREL_DESCRIPTION"></span>
<br/>
<span datasrc="#apparel" datafld="APPAREL_SIZE"></span>
<br/>
<span datasrc="#apparel" datafld="APPAREL_PRICE"></span>



Rower_CPU
Sep 7, 2004, 12:12 AM
You need to start by defining a DOCTYPE (http://www.w3schools.com/tags/tag_doctype.asp) (I assume you'll have to go with an XHTML for the XML tags to work) - without specifying one every browser is going to interpret the page code differently. Once you've got your doctype in place then run it through the HTML validator (http://validaotr.w3.org) to see if there are any HTML errors.

D0ct0rteeth
Sep 7, 2004, 11:54 AM
omg.. that opened a whole can of worms. 15 doctypes later and Im getting nowhere.

I have all kinds of issues here.

Do you have any xml experience? I may need to do this another way.

dr0wnoutthen0is
Sep 7, 2004, 12:53 PM
It only works in IE because the "datasrc" and "datafld" attributes of the <span> tag are Microsoft proprietary IE stuff.