// not sure if this line of code ever works
namespace = dom.lookupNamespace(node, prefix);
}
catch(RuntimeException e) {
handler.flushPending(); // need to flush or else can't get namespacemappings
NamespaceMappings nm = handler.getNamespaceMappings();
namespace = nm.lookupNamespace(prefix);
if (namespace == null) {
runTimeError(NAMESPACE_PREFIX_ERR,prefix);
}
}
}