Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Default Namespace

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: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Default Namespace
  • Date: Thu, 02 Nov 2006 11:05:11 -0500

John Watson wrote:
Thanks for the amazingly prompt reply, Elliotte! Afraid I want the root
element to look like this:

<data xmlns="http://www.satelliteinfo.co.uk/feed/master/hrdg";
xmlns:hrdg="http://www.satelliteinfo.co.uk/feed/master/hrdg"; />


Element e = new Element("data", "http://www.satelliteinfo.co.uk/feed/master/hrdg";);
e.addNamespaceDeclaration("hrdg", "http://www.satelliteinfo.co.uk/feed/master/hrdg";);

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/




Archive powered by MHonArc 2.6.24.

Top of Page