CreateAttribute()

XPathNavigator::CreateAttribute(String, String, String, String) method

Creates an attribute node on the current element node using the namespace prefix, local name and namespace URI specified with the value specified.

virtual void System::Xml::XPath::XPathNavigator::CreateAttribute(String prefix, String localName, String namespaceURI, String value)

Arguments

ParameterTypeDescription
prefixStringThe namespace prefix of the new attribute node (if any).
localNameStringThe local name of the new attribute node which cannot String::Empty or nullptr.
namespaceURIStringThe namespace URI for the new attribute node (if any).
valueStringThe value of the new attribute node. If String::Empty or nullptr are passed, an empty attribute node is created.

See Also