xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
[XOM-interest] Element.getNamespacePrefix() vs Attribute.getPrefix()
- From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
- To: Laurent Bihanic <laurent.bihanic AT atosorigin.com>, XOM-interest <XOM-interest AT lists.ibiblio.org>
- Subject: [XOM-interest] Element.getNamespacePrefix() vs Attribute.getPrefix()
- Date: Thu, 19 Sep 2002 11:03:50 -0400
At 10:33 AM +0200 9/19/02, Laurent Bihanic wrote:
- Element.getNamespacePrefix() vs Attribute.getPrefix(): to be made consistent. getNamespacePrefix is clearer.
This makes sense. I think my original though was that the only kind of prefix an attribute could have was a namespace prefix, so why bother with the longer name? However, elements and attributes can have base URIs and namespace URIs, so getURI() is not sufficient. And for consistency I should probably just go with getNamespacePrefix/getNamespaceURI all around.
--
+-----------------------+------------------------+-------------------+
| 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/ |
+----------------------------------+---------------------------------+
-
Re: [XOM-interest] CDATA handling
, (continued)
-
Re: [XOM-interest] CDATA handling,
John Cowan, 09/19/2002
- Re: [XOM-interest] CDATA handling, Elliotte Rusty Harold, 09/19/2002
-
[XOM-interest] Document portions,
Elliotte Rusty Harold, 09/19/2002
- Re: [XOM-interest] Document portions, Laurent Bihanic, 09/20/2002
- [XOM-interest] Automatic detach, Elliotte Rusty Harold, 09/19/2002
-
[XOM-interest] Tree walking,
Elliotte Rusty Harold, 09/19/2002
-
Re: [XOM-interest] Tree walking,
Johannes Döbler, 09/19/2002
- Re: [XOM-interest] Tree walking, Elliotte Rusty Harold, 09/19/2002
-
Re: [XOM-interest] Tree walking,
Johannes Döbler, 09/19/2002
-
[XOM-interest] HTML Serializer,
Elliotte Rusty Harold, 09/19/2002
- Re: [XOM-interest] HTML Serializer, a student, 09/19/2002
- [XOM-interest] Element.getNamespacePrefix() vs Attribute.getPrefix(), Elliotte Rusty Harold, 09/19/2002
-
[XOM-interest] Element.add(),
Elliotte Rusty Harold, 09/19/2002
- Re: [XOM-interest] Element.add(), John Cowan, 09/19/2002
-
[XOM-interest] Node.howManyChildren(): getChildCount(),
Elliotte Rusty Harold, 09/19/2002
-
Re: [XOM-interest] Node.howManyChildren(): getChildCount(),
John Cowan, 09/19/2002
- Re: [XOM-interest] Node.howManyChildren(): getChildCount(), Rolf Lohaus, 09/19/2002
-
Re: [XOM-interest] Node.howManyChildren(): getChildCount(),
John Cowan, 09/19/2002
-
Re: [XOM-interest] CDATA handling,
John Cowan, 09/19/2002
Archive powered by MHonArc 2.6.24.