Whitespace in input control from valid XML

Project:formsPlayer
Version:1.5.7.1013
Component:User interface
Category:bug
Priority:normal
Assigned:Unassigned
Status:closed
Description

In recent versions of formsplayer, XML that used to behave properly is no longer doing so.
For example, XML containing the following 'A' element would historically be displayed in an input control as an empty string.
<Sample>
<A>
</A>
</Sample>
Now, the input control displays several spaces.

One way around this is to rewrite the XML as follows:
<Sample>
<A/>
</Sample>

However, when this XML is sumbitted (using Put method), the format of the XML is changed to that described in example 1
When the XML is redisplayed we again have the whitespace issue described at the outset.

Updates

#1 submitted by Paul Butcher on Thu, 2007-12-13 11:16
Attachment:TestEmptyElements.html (2.54 KB)

The attached file is an anonymised version of the form you sent me by email. For me, the desired empty element is saved as <A></A>, so, although it is not in the minimized form <A/>, it is still empty. The same is true when POSTing to http, which can be inspected with Fiddler. Is there some other phase when GETting the submitted xml back, that might cause the indentation to occur?

#2 submitted by fmcgovern on Thu, 2007-12-13 20:24
Status:new» closed

Thanks
c#'s XmlDocumnent component was putting in the carriage return line feed.
I set the PreserveWhitespace property to true and the original format was preserved.