System::Xml::XmlDocument::CreateAttribute yöntemi

XmlDocument::CreateAttribute(const String&) method

Belirtilen adla bir XmlAttribute oluşturur.

SharedPtr<XmlAttribute> System::Xml::XmlDocument::CreateAttribute(const String &name)
ParameterTypeAçıklama
nameconst String&The qualified name of the attribute. If the name contains a colon, the XmlNode::get_Prefix value reflects the part of the name preceding the first colon and the XmlDocument::get_LocalName value reflects the part of the name following the first colon. The XmlNode::get_NamespaceURI remains empty unless the prefix is a recognized built-in prefix such as xmlns. In this case get_NamespaceURI has a value of http://www.w3.org/2000/xmlns/.

ReturnValue

Yeni XmlAttribute.

Ayrıca Bakınız

XmlDocument::CreateAttribute(const String&, const String&, const String&) method

Belirtilen XmlNode::get_Prefix, XmlDocument::get_LocalName ve XmlNode::get_NamespaceURI ile bir XmlAttribute oluşturur.

virtual SharedPtr<XmlAttribute> System::Xml::XmlDocument::CreateAttribute(const String &prefix, const String &localName, const String &namespaceURI)
ParameterTypeAçıklama
prefixconst String&Özniteliğin öneki (varsa). String::Empty ve nullptr eşdeğerdir.
localNameconst String&Özniteliğin yerel adı.
namespaceURIconst String&Özniteliğin ad alanı URI’si (varsa). String::Empty ve nullptr eşdeğerdir. prefix xmlns ise, bu parametre http://www.w3.org/2000/xmlns/; olmalıdır; aksi takdirde bir istisna fırlatılır.

ReturnValue

Yeni XmlAttribute.

Ayrıca Bakınız

XmlDocument::CreateAttribute(const String&, const String&) method

Belirtilen nitelikli ad ve XmlNode::get_NamespaceURI ile bir XmlAttribute oluşturur.

SharedPtr<XmlAttribute> System::Xml::XmlDocument::CreateAttribute(const String &qualifiedName, const String &namespaceURI)
ParameterTypeAçıklama
qualifiedNameconst String&Özniteliğin nitelikli adı. Ad bir iki nokta üst üste (:) içeriyorsa, XmlNode::get_Prefix değeri iki nokta üst üstenin öncesindeki kısmı, XmlDocument::get_LocalName değeri ise iki nokta üst üstenin sonrasındaki kısmı yansıtır.
namespaceURIconst String&Özniteliğin namespaceURI’si. Nitelikli ad xmlns öneki içeriyorsa, bu parametre http://www.w3.org/2000/xmlns/ olmalıdır.

ReturnValue

Yeni XmlAttribute.

Ayrıca Bakınız