IXmlSerializer.Attribute(String, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Write an attribute.
[Android.Runtime.Register("attribute", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/xmlpull/v1/XmlSerializer;", "GetAttribute_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler:Org.XmlPull.V1.IXmlSerializerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Org.XmlPull.V1.IXmlSerializer? Attribute(string? namespace, string? name, string? value);
[<Android.Runtime.Register("attribute", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/xmlpull/v1/XmlSerializer;", "GetAttribute_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler:Org.XmlPull.V1.IXmlSerializerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Attribute : string * string * string -> Org.XmlPull.V1.IXmlSerializer
Parameters
- namespace
- String
The attribute namespace URI, or null or an empty string for an attribute without a namespace prefix.
- name
- String
The attribute name.
- value
- String
The attribute value to write.
Returns
This serializer, so that further write calls can be chained.
- Attributes
Exceptions
Remarks
Write an attribute. Calls to attribute() MUST follow a call to startTag() immediately. If there is no prefix defined for the given namespace, a prefix will be defined automatically. If namespace is null or empty string no namespace prefix is printed but just name.
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.