Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Mon, 8 Sep 2008 16:31:41 -0500,    group: microsoft.public.xml        back       


Have you all observed Safari, Opera and Firefox are FUBAR compared to IE?   
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!
date: Mon, 8 Sep 2008 16:31:41 -0500   author:   Hillbilly

Re: Have you all observed Safari, Opera and Firefox are FUBAR compared to IE?   
"Hillbilly"  wrote in message 
news:uGtxnofEJHA.5104@TK2MSFTNGP02.phx.gbl...
> 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.

Readable by who?  The need for XML to be readable = lack of appropriate 
tools.

> 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.

IE does the same.  The MXSML3 dll it has a buried resource which contains an 
XSL file.  In the abscence of a <?xml-stylesheet directive it uses this 
stylesheet to transform the XML to HTML for display.

> This of course will mislead a person who does not know they must view 
> source to copy and paste the valid raw XML.

What sort of person does not know that yet has the need to do that?

>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.

It think you'll find that'll be because the original source doesn't have the 
white-space that you think it does.

>
> 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!
>

The code above doesn't include any indentation or whitespace.

-- 
Anthony Jones - MVP ASP/ASP.NET
date: Tue, 9 Sep 2008 08:59:36 +0100   author:   Anthony Jones

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us