W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2003

tidy -xml changes empty elements to non-empty elements

From: Mickey and Amy Glasgow <lglasgow@triad.rr.com>
Date: Wed, 19 Feb 2003 19:20:41 -0500
Message-ID: <000901c2d875$e6ec1500$9865fea9@Dell>
To: <html-tidy@w3.org>

For example, the following input:

  <AddressLine1>13 Mockingbird Ln</AddressLine1>

...in which AddressLine2 is an empty element becomes:

  <AddressLine1>13 Mockingbird Ln</AddressLine1>


...in which the element value for the AddressLine2 tag now contains a
newline character and two spaces.

An XML processor will treat these two values differently!!!

I don't really like the blank line between the two inner elements, but at
least it doesn't change the content of the data.

Mickey Glasgow
Received on Wednesday, 19 February 2003 20:27:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:53 UTC