|
top
|
Subject: Re: Unexpected behaviour -- XML:Space Author: (Deleted User) Date: 03 Dec 2002 04:00 PM
|
Hi Adam,
according to the XML spec,
"In editing XML documents, it is often convenient to use "white space"
(spaces, tabs, and blank lines) to set apart the markup for greater
readability....
A special attribute named xml:space
may be attached to an element to signal an intention that in that element,
white space should be preserved by applications...
the value "preserve" indicates the intent that applications preserve all
the white space"
So, if the "svg" element has the xml:space="preserve" attribute specified,
indenter will not add or remove extra whitespace characters, but it will
keep the existing ones.
If you need to indent such a document, you should change the "preserve"
into "default", indent the document, then change the value back.
Hope this helps,
Alberto
|
|
|