Re: [xml-dev] RE: Why does my browser treat the XML Schema document at a URL as an XML document?

From
Jirka Kosek <>
To
"Costello, Roger L." <>
Date
2012-09-11T09:21:22Z
ID
<>
Thread
Re: [xml-dev] RE: Why does my browser treat the XML Schema document at 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:       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
------------------------------------------------------------------