Share via


DefaultHandler.ResolveEntity(String, String) Method

Definition

Resolve an external entity.

[Android.Runtime.Register("resolveEntity", "(Ljava/lang/String;Ljava/lang/String;)Lorg/xml/sax/InputSource;", "GetResolveEntity_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual Org.Xml.Sax.InputSource? ResolveEntity (string? publicId, string? systemId);
[<Android.Runtime.Register("resolveEntity", "(Ljava/lang/String;Ljava/lang/String;)Lorg/xml/sax/InputSource;", "GetResolveEntity_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member ResolveEntity : string * string -> Org.Xml.Sax.InputSource
override this.ResolveEntity : string * string -> Org.Xml.Sax.InputSource

Parameters

publicId
String

The public identifier, or null if none is available.

systemId
String

The system identifier provided in the XML document.

Returns

The new input source, or null to require the default behaviour.

Implements

Attributes

Exceptions

If there is an error setting up the new input source.

Any SAX exception, possibly wrapping another exception.

Remarks

Resolve an external entity.

Always return null, so that the parser will use the system identifier provided in the XML document. This method implements the SAX default behaviour: application writers can override it in a subclass to do special translations such as catalog lookups or URI redirection.

Java documentation for org.xml.sax.helpers.DefaultHandler.resolveEntity(java.lang.String, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also

  • <xref:Org.Xml.Sax.IEntityResolver.ResolveEntity(System.String%2c+System.String)>