Question about XML tag output formatting

I was wondering if there was a way in any of the Java API's where I could get the XML output format to be different. Here's an example

instead of <tag attr="" /> when there is no data it needs to wrap around I would like it to look like <tag attr=""></tag>. Anyone know of a method.

Thanks in advance.

[342 byte] By [rutherford218a] at [2007-11-27 7:50:25]
# 1
Nope. In XML those two things aren't different so it isn't necessary for serializers to consider the need to prefer either version. Is there a reason you think you must have one version rather than the other?
DrClapa at 2007-7-12 19:31:28 > top of Java-index,Java Essentials,Java Programming...
# 2

Indeed I do have a need. I need to input information into an xml file from an excel file....easy enough. But the problem is the xml parser that the file eventually uses is a legacy application, so I have to have the </tag> because my guess is they wrote the parser using text functions as opposed to using something like xerces. The way I have found to do this is using XMLSpy, there is a setting that will closed empty tags differently and then enable the pretty print.

Thanks

rutherford218a at 2007-7-12 19:31:28 > top of Java-index,Java Essentials,Java Programming...