IDocument.CreateEntityReference(String) Method

Definition

Creates an <code>EntityReference</code> object.

[Android.Runtime.Register("createEntityReference", "(Ljava/lang/String;)Lorg/w3c/dom/EntityReference;", "GetCreateEntityReference_Ljava_lang_String_Handler:Org.W3c.Dom.IDocumentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Org.W3c.Dom.IEntityReference? CreateEntityReference (string? name);
[<Android.Runtime.Register("createEntityReference", "(Ljava/lang/String;)Lorg/w3c/dom/EntityReference;", "GetCreateEntityReference_Ljava_lang_String_Handler:Org.W3c.Dom.IDocumentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member CreateEntityReference : string -> Org.W3c.Dom.IEntityReference

Parameters

name
String

The name of the entity to reference.Unlike <code>Document.createElementNS</code> or <code>Document.createAttributeNS</code>, no namespace well-formed checking is done on the entity name. Applications should invoke <code>Document.normalizeDocument()</code> with the parameter " namespaces" set to <code>true</code> in order to ensure that the entity name is namespace well-formed.

Returns

IEntityReference

The new <code>EntityReference</code> object.

Attributes

Exceptions

INVALID_CHARACTER_ERR: Raised if the specified name is not an XML name according to the XML version in use specified in the Document.xmlVersion attribute.
NOT_SUPPORTED_ERR: Raised if this document is an HTML document.

Remarks

Java documentation for org.w3c.dom.Document.createEntityReference(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