Java EE 5 SDK
Interface XMLResolver

public interface XMLResolver

This interface is used to resolve resources during an XML parse. If an application wishes to perform custom entity resolution it must register an instance of this interface with the XMLInputFactory using the setXMLResolver method.

Copyright (c) 2003 by BEA Systems. All Rights Reserved.

Method Summary
 Object resolveEntity(String publicID, String systemID, String baseURI, String namespace)
          Retrieves a resource.

Method Detail


Object resolveEntity(String publicID,
                     String systemID,
                     String baseURI,
                     String namespace)
                     throws XMLStreamException
Retrieves a resource. This resource can be of the following three return types: (1) (2) (3) If this method returns null the processor will attempt to resolve the entity using its default mechanism.

publicID - The public identifier of the external entity being referenced, or null if none was supplied.
systemID - The system identifier of the external entity being referenced.
baseURI - Absolute base URI associated with systemId.
namespace - The namespace of the entity to resolve.
The resource requested or null.
XMLStreamException - if there was a failure attempting to resolve the resource.

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.