I am using jDOM to generate XML file. I have <TEXT> element in XMl file. Now when I don�t have any value for <TEXT>, the generated element contains <TEXT />. But instead of that I required <TEXT></TEXT>. How to achieve this?
My blood is tested +ve for Java.
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12271
1
posted
0
the generated element contains <TEXT />. But instead of that I required <TEXT></TEXT>.
Either form is good legal XML for an empty element and will be handled propertly by XML parsers.
Why are you so sure that you require the second form?