Reputation: 163
The problem is that I can't find the formatting option needed in class org.jdom.output.Format
.
The XML is generated like this:
<mytag attribute="value"/>
I need it like this:
<mytag attribute="value" />
Any ideas how can I accomplish this? I need that empty space in before the tag end.
Upvotes: 2
Views: 53
Reputation: 111726
You cannot control the difference between
<mytag attribute="value"/>
and
<mytag attribute="value" />
using XML tools because there is no difference between those forms at the XML level. No XML processors downstream of you should care about that difference; if they do, they're broken and should be fixed.
If you cannot get the downstream XML tool fixed, contain the problem by preprocessing its input as text, not as XML, to achieve the desired format.
Upvotes: 1