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

Re: tidy -xml changes empty elements to non-empty elements

From: Charles Reitzel <creitzel@rcn.com>
Date: Thu, 20 Feb 2003 00:01:13 -0500
Message-Id: <4.3.2.7.2.20030219235824.029be000@pop.rcn.com>
To: "Mickey and Amy Glasgow" <lglasgow@triad.rr.com>
Cc: <html-tidy@w3.org>

Hi Mickey,

When I use --input-xml yes, I get the output identical to the input for 
your example.  What version of Tidy and what options are you using?

take it easy,
Charlie

At 07:20 PM 2/19/2003 -0500, Mickey and Amy Glasgow wrote:

>For example, the following input:
>
><HomeAddress>
>   <AddressLine1>13 Mockingbird Ln</AddressLine1>
>   <AddressLine2></AddressLine2>
></HomeAddress>
>
>...in which AddressLine2 is an empty element becomes:
>
><HomeAddress>
>   <AddressLine1>13 Mockingbird Ln</AddressLine1>
>
>   <AddressLine2>
>   </AddressLine2>
></HomeAddress>
>
>...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.
>
>Thanks,
>Mickey Glasgow
>mickey_glasgow@aoncons.com
Received on Wednesday, 19 February 2003 23:51:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:53 GMT