lookupSchemaForElement
java.lang.String lookupSchemaForElement(java.lang.String type,
java.lang.String namespaceURI,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String baseURI)
Method to find Schema for a specific customized element related to the custom schema locations.
- Parameters:
type - The type of the resource being resolved. For XML [XML 1.0] resources (i.e. entities),
applications must use the value "http://www.w3.org/TR/REC-xml". For XML Schema [XML Schema Part 1],
applications must use the value "http://www.w3.org/2001/XMLSchema". Other types of resources are
outside the scope of this specification and therefore should recommend an absolute URI in order
to use this method.
namespaceURI - The namespace of the resource being resolved, e.g. the target namespace of the XML Schema
[XML Schema Part 1] when resolving XML Schema resources.
publicId - The public identifier of the external entity being referenced, or null if no public identifier
was supplied or if the resource is not an entity.
systemId - The system identifier, a URI reference [IETF RFC 2396], of the external resource being
referenced, or null if no system identifier was supplied.
baseURI - The absolute base URI of the resource being parsed, or null if there is no base URI.
- Returns:
- the resource as stream path to related schema XSD, or null if no matching found.