Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] <receive/> vs. <receive />

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Wolfgang Hoschek <wolfgang.hoschek AT mac.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] <receive/> vs. <receive />
  • Date: Thu, 10 Nov 2005 21:58:20 -0500

Wolfgang Hoschek wrote:
Just curious, what's the rationale for Document.toXML() and the Serializer outputting empty elements in a different way, with and without a blank?Example: <receive/> vs. <receive />
Shouldn't both routes output the same style?


I don't think there is any rationale. I suspect it just happened that way without any conscious decision. With the space is a little nicer for XHTML, but doesn't really matter for most other apps. If it bothers anyone, I'm inclined to remove the blank from toXML().

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page