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

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 UTC