Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Question about: writeNamespaceDeclarations(Element)

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: "Kevin S. Clarke" <ksclarke AT gmail.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Question about: writeNamespaceDeclarations(Element)
  • Date: Tue, 01 Mar 2005 14:47:00 -0500

Kevin S. Clarke wrote:

writeNamespaceDeclarations(Element) in Serializer

Is there a reason why the Element supplied to this method must have a
parent? I'd like to be able to pass in a top-level element that
doesn't have a parent.


I suspect the reason this is the case is simply to test whether a namespace is already in scope, and thus doesn't need to be written here.

However, I don't think there was any deliberate decision to prevent people from writing parentless elements. It just sort of happened. I'll see if I can fix it.

--
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