Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Have you all observed Safari, Opera and Firefox are FUBAR compared to IE?

From: "Hillbilly" <somebody@---------.--->
To: NULL
Date: 9/8/2008 4:32:00 PM

I've just learned Internet Explorer is the only browser that actually 
correctly renders raw XML as the developer intends --and-- as intended
by those that developed XML as a "READABLE" file raw file format. 

Firefox and others lie on the UI and remove the XML prolog and then 
display what fraudulently appears as raw XML as a styled tree. 

This of course will mislead a person who does not know they must view 
source to copy and paste the valid raw XML. Furthermore, the raw XML 
in the source no longer has white-space indentation preserved and these
other browsers turn the raw XML into an unreadable string.

These other browsers fail to render raw XML as this example
invalidating RSS...

XmlWriterSettings   ws = new XmlWriterSettings();
                    ws.CheckCharacters = true;
                    ws.CloseOutput = true;


XmlWriterSettings   ws = new XmlWriterSettings();
            ws.CheckCharacters = true;
            ws.CloseOutput = true;


using (XmlWriter xw = XmlWriter.Create(writerFileMapPath, ws))
{

try
{

xw.WriteStartDocument();
xw.WriteStartElement("rss");
xw.WriteAttributeString("version", "2.0");                
xw.WriteElementString("child-node", "value");
xw.WriteStartElement("next-child");
xw.WriteAttributeString("some-attribute", "value");
xw.WriteAttributeString("another-attribute", "value");
xw.WriteValue("some-element value");
xw.WriteEndElement();
xw.WriteEndDocument();
xw.Close();

}//try

What's up? This doesn't seem right!



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent