Skip Headers

# Using Java

Previous

Next

Using Java, to configure XML schema namespaces for an EIS descriptor (with XML records) or an XML descriptor, create a descriptor amendment method (see "Configuring Amendment Methods") that uses `EISDescriptor` or `XMLDescriptor` method `getNamespaceResolver` to configure the descriptor's `NamespaceResolver` accordingly as shows.

Configuring Namespaces

    public void addToDescriptor(ClassDescriptor descriptor) {
        descriptor.getNamespaceResolver.put(
            prefix,
            namespaceURI
        );
    }