Problems with whitespace and msxml

Alexander Hinds ahinds at
Thu Jan 1 21:22:05 GMT 1998

> In other words, the value of xml:space should _not_ affect the
> information that msxml returns to your application; instead, it is up
> to your application to read the value, if present, and to take
> appropriate action.  Msxml should return all whitespace, no matter
> what.
> I have heard rumours that xml:space may some day be removed from the
> core XML spec and put into a separate "XML Conventions" spec -- that
> would be a very good idea.


Thanks.  Oddly enough, though according to MS' docs:

Section 2.10 says that xml-space can be specified on any element controlling
whether white space is preserved or normalized. The default is to normalize
white space (which means unify all white space characters down to a single
space). To preserve whitespace set xml-space to preserve, and this is
inherited down the hierarchy. To switch back to the default, set xml-space
to default


Well, nomatter what I do it doesn't seem to do anything with the xml-space
attribute.  Moreover, it doesn't seem to actually set the attribute for any
of my elements.  For example, getAttribute(...) always returns null for

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as:
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list