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: Wolfgang Hoschek <wolfgang.hoschek AT mac.com>
  • To: Elliotte Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] XOM 1.1 Beta 5
  • Date: Tue, 8 Nov 2005 15:34:45 -0800

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.

Wolfgang.


On Nov 8, 2005, at 3:15 AM, Elliotte Harold wrote:

Aust, Stefan wrote:


And wanted to canonicalize e3, but that didn't reproduce the
endless-loop... :(



I was able to reproduce an endless loop. It only arose if the element
was not in a document, but did have at least two ancestor elements.
Hopefully that's the same endless loop you found. It should be fixed
now. Give the latest CVS code a spin, and see if it helps.

--
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
_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest






Archive powered by MHonArc 2.6.24.

Top of Page