Search in sources :

Example 1 with StackUnmarshalNamespaceResolver

use of org.eclipse.persistence.internal.oxm.record.namespaces.StackUnmarshalNamespaceResolver in project eclipselink by eclipse-ee4j.

the class DOMReader method parse.

@Override
public void parse(InputSource input) throws SAXException {
    if (input instanceof DOMInputSource) {
        Node node = ((DOMInputSource) input).getNode();
        if (contentHandler != null && contentHandler.getClass() == SAXUnmarshallerHandler.class) {
            ((SAXUnmarshallerHandler) contentHandler).setUnmarshalNamespaceResolver(new StackUnmarshalNamespaceResolver());
        }
        parse(node);
    }
}
Also used : StackUnmarshalNamespaceResolver(org.eclipse.persistence.internal.oxm.record.namespaces.StackUnmarshalNamespaceResolver) Node(org.w3c.dom.Node)

Aggregations

StackUnmarshalNamespaceResolver (org.eclipse.persistence.internal.oxm.record.namespaces.StackUnmarshalNamespaceResolver)1 Node (org.w3c.dom.Node)1