Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] xmlns="" Is this Normal Behavior?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Sean Truman" <struman AT nuparadigm.com>
  • To: <xom-interest AT lists.ibiblio.org>
  • Subject: [XOM-interest] xmlns="" Is this Normal Behavior?
  • Date: Fri, 17 Mar 2006 10:12:50 -0600

Code:
Element root = new Element("root","http://www.test.com/root";);
root.appendChild(new Element("child"));
Document nd = new Document(root);
System.out.println("Document:"+nd.toXML());

Output:
Document:<?xml version="1.0"?>
<root xmlns="http://www.test.com/root";><child xmlns="" /></root>

Is there a reason that the child xmlns is empty? Or is this normal
behavior?

Sean Truman
Senior System Engineer
Nuparadigm Government Systems, Inc.
(work)(636)777-4235





Archive powered by MHonArc 2.6.24.

Top of Page