public static NamespaceEventImpl constructDefaultNamespace(Location loc, String nsURI) { return new NamespaceEventImpl(loc, nsURI); }
public static NamespaceEventImpl constructNamespace(Location loc, String nsPrefix, String nsURI) { if (nsPrefix == null || nsPrefix.length() == 0) { // default NS: return new NamespaceEventImpl(loc, nsURI); } return new NamespaceEventImpl(loc, nsPrefix, nsURI); }