homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

xml works in I.E. but not in Firefox.
xml does not work in firefox

 12:30 am on Apr 25, 2005 (gmt 0)

Hi everyone, I'm new to xml but I created a document that seems to work fine in I.E., but fails in Firefox. The main issue arises when I use html tags within xml tags, like <p /> or <br /> etc... In I.E., the tags work but in Firefox, the tags are just printed out as part of the text.

For example: I've define the <content> tag, if my xml code is
<content>Hello <br /> world.</content>
in I.E. it shows as:

in FF it shows as:
Hello <br /> world.

You'll see from my code below that I'm using CDATA in order to output html, I think thats where the problem lies, but I have no idea. Here's what I'm working with.

XSL File:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
<xsl:value-of select="content" disable-output-escaping="yes" />


<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="http://www.domain.com/blog.xsl"?>
<!DOCTYPE blogset SYSTEM "http://www.domain.com/blog.dtd">

<![CDATA[ Test test <br /> Test Test ]]>

If you need any further info, just let me know.



 12:09 pm on Apr 29, 2005 (gmt 0)

Have you tried to use the XHTML namespace? Try calling the namespace from W3C and then adding "xhtml:" in front of all your HTML tags :)


 3:34 pm on May 6, 2005 (gmt 0)

i've tried doing that, but it still didnt work. in any case i think i'm going with an xhtml site, i'll finish this xml project of mine at a later date.


 8:05 pm on May 7, 2005 (gmt 0)

You're declaring the child text node of your content node to be CDATA, so Firefox isn't parsing it. I'm not skilled enough to know the fix - PCDATA maybe?


 5:55 pm on Jun 9, 2005 (gmt 0)

For me, that has been what Firefox does, whether in Windows or in Linux and with any version of FF.

It simply can't parse XML properly.

I'm ready to be pelted with suggestions from people who can see parsed, well-formed XML pages in Firefox regarding how to configure the thing so it behaves properly, (I can't believe I'm saying this ... but) like Internet Explorer does.


 3:16 am on Jun 15, 2005 (gmt 0)

Help! another one who using XML in a webbrowser directly, STOP doing that, so foolish.

Let a real good parser do that and do not demand of the visitors they they shall have any IE to parse it for themself.

Some people needs to learn why XML exists.

XML is an open markup language for data in documents and other files/databases. From XML you parse into other formats like HTML, WORD, PDF or whatever. XML shall always be created so it's easy to move the XML data from one platform and software to another without a lot of edits in the XML data, most XML coders are doing a huge mistake there.


 11:24 pm on Jun 17, 2005 (gmt 0)

There is a nice little PHP script (actually, there are lots in PHP and Javascript and other languages) that parses an XML/RSS file and outputs it in browser-speak.

I recently used the set of scripts found here [wirelessdevnet.com] along with PERL's LWP::Simple to (a) grab the WebMD news feeds and (b) convert them for use on a website.

Smashing! There are some tweaks to make, like I used a switch() statement instead of all of the if ... elseif conditions, and I used a different, more accurate loop counting variable, but it's a great place to start, IMHO.


 3:11 pm on Jun 21, 2005 (gmt 0)

What about this:

It works in IE, but not FF. Any technical specification
about that? XML was created to work CROSS platform, not
just IE only.


 6:36 pm on Jun 21, 2005 (gmt 0)

It works in IE, but not FF. Any technical specification
about that? XML was created to work CROSS platform, not
just IE only.

It does work cross-platform. However, rendering XML inserted inside HTML documents is not part of any XML specification. Data islands are a proprietary Microsoft extension which are not supported, but can be emulated, in Firefox.



 1:44 pm on Jul 5, 2005 (gmt 0)

Alright, about Data Island, is there any more technical, non-baised, html validated and everything that all browser can use? No tricks or anything like that. Is there such a monster?

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved