Share via


IDeclHandler.ElementDecl(String, String) Method

Definition

Report an element type declaration.

[Android.Runtime.Register("elementDecl", "(Ljava/lang/String;Ljava/lang/String;)V", "GetElementDecl_Ljava_lang_String_Ljava_lang_String_Handler:Org.Xml.Sax.Ext.IDeclHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void ElementDecl (string? name, string? model);
[<Android.Runtime.Register("elementDecl", "(Ljava/lang/String;Ljava/lang/String;)V", "GetElementDecl_Ljava_lang_String_Ljava_lang_String_Handler:Org.Xml.Sax.Ext.IDeclHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ElementDecl : string * string -> unit

Parameters

name
String

The element type name.

model
String

The content model as a normalized string.

Attributes

Exceptions

The application may raise an exception.

Remarks

Report an element type declaration.

The content model will consist of the string "EMPTY", the string "ANY", or a parenthesised group, optionally followed by an occurrence indicator. The model will be normalized so that all parameter entities are fully resolved and all whitespace is removed,and will include the enclosing parentheses. Other normalization (such as removing redundant parentheses or simplifying occurrence indicators) is at the discretion of the parser.

Java documentation for org.xml.sax.ext.DeclHandler.elementDecl(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