xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
- To: jcowan AT reutershealth.com
- Cc: xom-interest AT lists.ibiblio.org
- Subject: [XOM-interest] Put methods
- Date: Thu, 5 Feb 2004 07:13:48 -0500
At 2:14 PM -0500 2/2/04, jcowan AT reutershealth.com wrote:
1) I think it's worth having a put method to complement get. The only
way to replace a single Node in the list currently is either to copy
it, which does not preserve object identity, or else to remove and
then insert/append, which involves copying the list anywhere up to
twice internally (if you want to replace the zeroth node), and requires
getting the insert vs. append choice correct.
I don't see an obvious use case for this right now.Since adding it in the future would not be backwards incompatible with existing code, I'm going to hold off on this until it becomes obvious that it's necessary. I'll probably consider it again when I look at rewriting the XInclude implementation code (which is currently some of the ugliest, hard-to-follow, hard-to-understand, code in XOM). If it looks like put would help with that, I'll add it then.
I'm also worried that the distinction between put and insert is not obvious. If I do add it I'll likely call it something like replace rather than put.
--
Elliotte Rusty Harold
elharo AT metalab.unc.edu
Effective XML (Addison-Wesley, 2003)
http://www.cafeconleche.org/books/effectivexml
http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA
-
Re: [XOM-interest] XOM 1.0d23 Last Call
, (continued)
-
Re: [XOM-interest] XOM 1.0d23 Last Call,
jcowan, 02/02/2004
- Re: [XOM-interest] XOM 1.0d23 Last Call, dirk bergstrom, 02/02/2004
-
Re: [XOM-interest] XOM 1.0d23 Last Call,
Elliotte Rusty Harold, 02/02/2004
-
Re: [XOM-interest] XOM 1.0d23 Last Call,
jcowan, 02/02/2004
-
Re: [XOM-interest] XOM 1.0d23 Last Call,
Elliotte Rusty Harold, 02/02/2004
- Re: [XOM-interest] XOM 1.0d23 Last Call, John Cowan, 02/02/2004
-
Re: [XOM-interest] XOM 1.0d23 Last Call,
Bradley S. Huffman, 02/02/2004
-
Re: [XOM-interest] XOM 1.0d23 Last Call,
John Cowan, 02/02/2004
- Re: [XOM-interest] XOM 1.0d23 Last Call, Bradley S. Huffman, 02/02/2004
-
Re: [XOM-interest] XOM 1.0d23 Last Call,
John Cowan, 02/02/2004
-
Re: [XOM-interest] XOM 1.0d23 Last Call,
Elliotte Rusty Harold, 02/02/2004
-
Re: [XOM-interest] XOM 1.0d23 Last Call,
jcowan, 02/02/2004
- Re: [XOM-interest] XOM 1.0d23 Last Call, Bill de hÓra, 02/02/2004
-
[XOM-interest] Put methods,
Elliotte Rusty Harold, 02/05/2004
- Re: [XOM-interest] Put methods, jcowan, 02/05/2004
-
[XOM-interest] hasChildren vs. getChildCount == 0,
Elliotte Rusty Harold, 02/05/2004
-
Re: [XOM-interest] hasChildren vs. getChildCount == 0,
Dirk Bergstrom, 02/05/2004
- Re: [XOM-interest] hasChildren vs. getChildCount == 0, Bill de hÓra, 02/05/2004
- Re: [XOM-interest] hasChildren vs. getChildCount == 0, Janek Bogucki, 02/09/2004
-
Re: [XOM-interest] hasChildren vs. getChildCount == 0,
Dirk Bergstrom, 02/05/2004
- [XOM-interest] UNDECLARED vs. CDATA, Elliotte Rusty Harold, 02/05/2004
- [XOM-interest] Namespace methods, Elliotte Rusty Harold, 02/05/2004
- [XOM-interest] Builder issues, Elliotte Rusty Harold, 02/05/2004
- [XOM-interest] ID or identifier, Elliotte Rusty Harold, 02/05/2004
- [XOM-interest] NodeFactory issues, Elliotte Rusty Harold, 02/06/2004
-
Re: [XOM-interest] XOM 1.0d23 Last Call,
jcowan, 02/02/2004
Archive powered by MHonArc 2.6.24.