XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] RE: Why does my browser treat the XML Schema documentat a URL as an XML document?

> Because IE's XML parser incorrectly strips whitespace text nodes. 

Thanks Michael. 

Is there a workaround?

/Roger

-----Original Message-----
From: Michael Kay [mailto:mike@saxonica.com] 
Sent: Monday, September 10, 2012 1:06 PM
To: xml-dev@lists.xml.org
Subject: Re: [xml-dev] RE: Why does my browser treat the XML Schema document at a URL as an XML document?

<xs:attribute name="lang"><xs:simpleType><xs:union 
memberTypes="xs:language"><xs:simpleType><xs:restriction 
base="xs:string"><xs:enumeration 
value=""/></xs:restriction></xs:simpleType></xs:union></xs:simpleType></xs:attribute> 
Notice that the XML is all smashed onto one line.

Why is there such a difference in behavior?

Because IE's XML parser incorrectly strips whitespace text nodes. An 
old, old problem.

You can write all the specs you like but you can't make Microsoft 
implement them...

Michael Kay
Saxonica

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS