xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] feature request: being able to specify the NodeFactory for DomConverter
- 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] feature request: being able to specify the NodeFactory for DomConverter
- Date: Wed, 18 Jan 2006 17:30:20 -0500
Wolfgang Hoschek wrote:
I haven't tried it, but a quick scan over the code indicates that running this with a NodeFactory that returns null on startMakingElement() will cause a NPE (e.g. a XOMUtil.getNullNodeFactory()). In this case the element and its attributes and namespace declarations should be skipped, preserving the exact same semantics the Builder has.
Yep. That's a bug. It's fixed now (or at least I hope it is. I haven't yet explored all possible cases.)
Same holds for exceptions involving multiple root elements, missing root elements, etc. At least that's the guideline I've been using in all Nux build methods that take a NodeFactory.
I agree. If you notice any area where that doesn't seem to be followed, holler. I haven't tested every possible weird NodeFactory yet.
--
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] feature request: being able to specify the NodeFactory for DomConverter,
Elliotte Harold, 01/14/2006
-
Re: [XOM-interest] feature request: being able to specify the NodeFactory for DomConverter,
Wolfgang Hoschek, 01/14/2006
- Re: [XOM-interest] feature request: being able to specify the NodeFactory for DomConverter, Elliotte Harold, 01/18/2006
-
Re: [XOM-interest] feature request: being able to specify the NodeFactory for DomConverter,
Wolfgang Hoschek, 01/14/2006
Archive powered by MHonArc 2.6.24.