System::Xml::XPath::XPathNavigator::CreateAttribute method

XPathNavigator::CreateAttribute 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)
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