System::Xml::XmlDocument::CreateAttribute yöntemi
İçindekiler
[
Saklamak
]XmlDocument::CreateAttribute(const String&) method
Belirtilen adla bir XmlAttribute oluşturur.
SharedPtr<XmlAttribute> System::Xml::XmlDocument::CreateAttribute(const String &name)
| Parameter | Type | Açıklama |
|---|---|---|
| name | const 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
- Typedef SharedPtr
- Class XmlAttribute
- Class String
- Class XmlDocument
- Namespace System::Xml
- Library Aspose.Page for C++
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)
| Parameter | Type | Açıklama |
|---|---|---|
| prefix | const String& | Özniteliğin öneki (varsa). String::Empty ve nullptr eşdeğerdir. |
| localName | const String& | Özniteliğin yerel adı. |
| namespaceURI | const 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
- Typedef SharedPtr
- Class XmlAttribute
- Class String
- Class XmlDocument
- Namespace System::Xml
- Library Aspose.Page for C++
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)
| Parameter | Type | Açıklama |
|---|---|---|
| qualifiedName | const 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. |
| namespaceURI | const 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
- Typedef SharedPtr
- Class XmlAttribute
- Class String
- Class XmlDocument
- Namespace System::Xml
- Library Aspose.Page for C++