Dear list,
Thanks for the suggestions and clarification. After playing with XML
for a while I noticed whitespaces can indeed be more important then I
thought. I did came to the following conclusions;
1. Removing whitespaces was done by my code, not by the
xml.dom.minidom so I regret the fact I sa
Hi Jorgen,
> I parse an XML file, replace a node with a new one (like updating cache)
> and write it back. Every write, new spaces are added.
[ ... ]
> And this goes on. The node is one that is not touched in the XML, it is
> simply written back after reading. I have the same with void spaces in
>
>
> Such white space is typically not intended for inclusion in the
> delivered version of the document. On the other hand, "significant"
> white space that should be preserved in the delivered version is
> common, for example in poetry and source code.
>
>
> I interpret "significant" whitespace
On Wed, 03 Oct 2007 12:18:45 +0200, Jorgen Bodde wrote:
>> Which part of the standard is this? Here's the XML 1.0 specification's
>> section on whitespace:
>>
>> http://www.w3.org/TR/2006/REC-xml-20060816/#sec-white-space
>
> Well 2.10 if I quote:
>
>
> Such white space is typically not intende
On Oct 3, 6:18 am, "Jorgen Bodde" <[EMAIL PROTECTED]> wrote:
> Should I file this as a bug to be solved? I have my workaround now,
> but I read online that more people seem to have ran into this.
Perhaps it is not a bug in that it does not violate the standard. But
I know that I have been annoyed
Hi Paul,
> This seems like a reasonable explanation without having looked at the
> source code myself.
It's by thorough investigation ;-)
> Which part of the standard is this? Here's the XML 1.0 specification's
> section on whitespace:
>
> http://www.w3.org/TR/2006/REC-xml-20060816/#sec-white-sp
On 3 Okt, 11:30, "Jorgen Bodde" <[EMAIL PROTECTED]> wrote:
>
> Thank you for confirming this, I did manage a work around. When
> reading back the XML file, I strip it off it's whitespaces before I
> parse it. Then when writing it back no excessive whitespaces are
> appended. My best guess is that t
Hi there,
Thank you for confirming this, I did manage a work around. When
reading back the XML file, I strip it off it's whitespaces before I
parse it. Then when writing it back no excessive whitespaces are
appended. My best guess is that toprettyxml is not intelligently
handling whitespaces that
On Oct 2, 11:43 am, "Jorgen Bodde" <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I parse an XML file, replace a node with a new one (like updating
> cache) and write it back. Every write, new spaces are added. For
> example, first read - update - write cycle;
>
>
> My First App
>
>
> Second cycle