Hello faldżip,
You are wrong concerning the importance of whitespace within an xml document. The rules that specify the content that must be kept and can be discarded within an XML document are known as Canonical XML. The Canonical XML specification clearly states that whitespace between elements within the document element must be retained and can not be discarded.
http://www.w3.org/TR/xml-c14n#Exampl...spaceInContent
This is especially crucial for mixed content schemas such as XHTML where "<em>hello</em> <em>hello</em>" is a very different beast than "<em>hello</em><em>hello</em>". Whitespace is content and stripping it is the destruction of said content.
Thanks,
Mark
Bookmarks