If a Saxon JDOM DocumentWrapper is created without
supplying a namepool using the setNamePool() method,
subsequent access will fail, typically with a
NullPointerException.
The circumvention is to call setNamePool, e.g. as is
done in the DOM sample application:
DocumentWrapper docw =
new DocumentWrapper(doc, sourceID);
NamePool pool = NamePool.getDefaultNamePool();
docw.setNamePool(pool);
Problem reported by
Bekkers Yves [yves.bekkers@irisa.fr]
Applies to 6.5.1 and 7.0.
Source fixed, in both branches, by initializing the
namePool to the system default namepool within the
constructor. This will be adequate for all
applications except those that manipulate their own
namepools.
Mike Kay
Michael Kay
JDOM interface
v6.5.1
Public
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2002-04-30 16:43 | mhkay |
| close_date | - | 2002-04-30 16:43 | mhkay |