Mono Class Library: System.Xml.XmlDocument Overview | Members

System.Xml.XmlDocument.CreateElement Method

Creates an System.Xml.XmlElement object. [Edit]

public virtual XmlElement CreateElement (string prefix, string localName, string namespaceURI)

Parameters

prefix
a string which becomes the prefix of the returned element. [Edit]
localName
a string which becomes the local name of the returned element. [Edit]
namespaceURI
a string which becomes the namespace URI of the returned element. [Edit]

Returns

A new System.Xml.XmlElement instance whose XmlElement.OwnerDocument is this document. [Edit]

Remarks

Creates a new XmlElement instance with specified name components. localName must be a valid XML Name string.

If the . of this document exists and there is a corresponding ATTLIST definition for this element, the returned node contains default attributes in its XmlElement.Attributes property.

[Edit]

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0