Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Are the Attributes and Namespaces classes necessary?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: Kevin Herrboldt <kevin AT puppethead.com>, xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Are the Attributes and Namespaces classes necessary?
  • Date: Wed, 25 Sep 2002 16:05:44 -0400

At 2:29 PM -0500 9/25/02, Kevin Herrboldt wrote:


What about Attribute[] and Namespace[], then? You'd have to add a Namespace class, but that makes sense to me since a namespace in a document has two parts, the prefix and the URI. It might even simplify a lot of stuff elsewhere.


1. What's the use-case? Simplicity is an explicit goal of XOM, so I don't want to add lots of convenience methods unless they're very helpful.

2. In my experience with JDOM adding a Namespace class doesn't help a lot. I prefer to treat namespace prefixes and attributes as string properties of elements and attributes. I *may* have to revisit this when I add XPath support.
--

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo AT metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| XML in a Nutshell, 2nd Edition (O'Reilly, 2002) |
| http://www.cafeconleche.org/books/xian2/ |
| http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+




Archive powered by MHonArc 2.6.24.

Top of Page