Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] xmlns=""

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Michael Fitzgerald" <mike AT wyeast.net>
  • To: <xom-interest AT lists.ibiblio.org>
  • Subject: [XOM-interest] xmlns=""
  • Date: Fri, 4 Oct 2002 13:03:00 -0700

I'd expect that

Element name = new Element("name");
System.out.println(name.toXML());

would kick out

<name></name>

and that

Element name = new Element("name", "");
System.out.println(name.toXML());

would kick out

<name xmlns=""></name>

but the opposite is true in xom-1.0d4. That is:

Element name = new Element("name", "");

gets you

<name></name>

and

Element name = new Element("name");

gets you

<name xmlns=""></name>

What do people think? Am I missing something?

Mike




Archive powered by MHonArc 2.6.24.

Top of Page