| Project: | formsPlayer |
| Version: | 1.5.7.1013 |
| Component: | User interface |
| Category: | bug |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
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
| 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?
| 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.

Recent comments
3 days 18 hours ago
3 days 23 hours ago
5 days 17 hours ago
6 weeks 3 days ago
6 weeks 3 days ago
10 weeks 1 day ago
11 weeks 4 days ago
11 weeks 4 days ago
11 weeks 4 days ago
11 weeks 6 days ago