RE: Closing empty elements with /> on the Start tag
"O'Dell, Judy" <[email protected]> Fri, 9 Aug 2002 10:11:57 -0400
| Newsgroups | gmane.comp.jakarta.ecs.user |
|---|---|
| Message-ID | <D232AEB4AA44D411B4B900508BDF0774093EFC96@usahm011.exmi01.exch.eds.com> |
Just curious - Does using the setNeedClosingTag(false); change (for example) <start></start> into <start /> or just <start>? -----Original Message----- From: Stephan Nagy [mailto:[email protected]] Sent: Thursday, August 08, 2002 7:35 PM To: ECS Users List Subject: Re: Closing empty elements with /> on the Start tag just call setNeedClosingTag(false); -stephan ----- Original Message ----- From: "Peter A. Cassetta" <[email protected]> To: <[email protected]> Sent: Thursday, August 08, 2002 11:30 AM Subject: Closing empty elements with /> on the Start tag > The XML being generated by ECS is quite bulky due to many unnecessary closing > tags. > > My file uses a lot of attribute-only tags: > > 1. <start attr1="value" attr2="value"/> > > When I output via ECS I get: > > 2. <start attr1="value" attr2="value"></start> > > Is there an easy way to have empty elements automatically closed by just > prepending "/" before closing the opening tag (as in "1" above)? > > Thanks. > > Pete Cassetta > > -- > To unsubscribe, e-mail: <mailto:[email protected]> > For additional commands, e-mail: <mailto:[email protected]> > -- To unsubscribe, e-mail: <mailto:[email protected]> For additional commands, e-mail: <mailto:[email protected]>