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?

On 10.9.2012 19:21, Costello, Roger L. wrote:
>> Because IE's XML parser incorrectly strips whitespace text nodes. 
> 
> Thanks Michael. 
> 
> Is there a workaround?

If you parse XML file in Javascript you can configure parser behaviour
by using preserveWhiteSpace property:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms761353(v=vs.85).aspx

If parsing is done directly by IE only workaround is to add
xml:space="preserve" to the root element of the input XML file.

				Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------

OpenPGP digital signature



[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