[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?
- From: Jirka Kosek <jirka@kosek.cz>
- To: "Costello, Roger L." <costello@mitre.org>
- Date: Tue, 11 Sep 2012 11:21:22 +0200
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]