Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XOM 1.1 Beta 5

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: 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




Archive powered by MHonArc 2.6.24.

Top of Page