xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Elliotte Harold <elharo AT metalab.unc.edu>
- To: Wolfgang Hoschek <wolfgang.hoschek AT mac.com>
- Cc: xom-interest <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] XOM 1.1 Beta 5
- Date: Wed, 09 Nov 2005 08:49:54 -0500
Wolfgang Hoschek wrote:
I'd recommend
...
try {
write(node.query(".//. | .//@* | .//namespace::*"));
} finally {
if (pseudoRoot != null) pseudoRoot.removeChild(0);
}
to ensure that the canonicalizer does not modify its input even in the face of unforeseen failures.
Sensible. I wrote a test case for this and added the finally block.
--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim
-
Re: [XOM-interest] XOM 1.1 Beta 5,
Aust, Stefan, 11/04/2005
- Re: [XOM-interest] XOM 1.1 Beta 5, Elliotte Harold, 11/05/2005
- Re: [XOM-interest] XOM 1.1 Beta 5, Elliotte Harold, 11/18/2005
- <Possible follow-up(s)>
-
Re: [XOM-interest] XOM 1.1 Beta 5,
Aust, Stefan, 11/07/2005
- Re: [XOM-interest] XOM 1.1 Beta 5, Elliotte Harold, 11/07/2005
- Re: [XOM-interest] XOM 1.1 Beta 5, Elliotte Harold, 11/08/2005
- Re: [XOM-interest] XOM 1.1 Beta 5, Elliotte Harold, 11/08/2005
-
Re: [XOM-interest] XOM 1.1 Beta 5,
Elliotte Harold, 11/08/2005
-
Re: [XOM-interest] XOM 1.1 Beta 5,
Wolfgang Hoschek, 11/08/2005
- Re: [XOM-interest] XOM 1.1 Beta 5, Elliotte Harold, 11/09/2005
-
Re: [XOM-interest] XOM 1.1 Beta 5,
Wolfgang Hoschek, 11/08/2005
Archive powered by MHonArc 2.6.24.