System::Xml::XmlDocument::CreateElement method
Contents
[
Hide
]XmlDocument::CreateElement(const String&) method
Creates an element with the specified name.
SharedPtr<XmlElement> System::Xml::XmlDocument::CreateElement(const String &name)
Parameter | Type | Description |
---|---|---|
name | const String& | The qualified name of the element. If the name contains a colon then the XmlNode::get_Prefix value reflects the part of the name preceding the colon and the XmlDocument::get_LocalName value reflects the part of the name after the colon. The qualified name cannot include a prefix of xmlns. |
ReturnValue
The new XmlElement.
See Also
- Typedef SharedPtr
- Class XmlElement
- Class String
- Class XmlDocument
- Namespace System::Xml
- Library Aspose.PDF for C++
XmlDocument::CreateElement(const String&, const String&, const String&) method
Creates an element with the specified XmlNode::get_Prefix, XmlDocument::get_LocalName, and XmlNode::get_NamespaceURI.
virtual SharedPtr<XmlElement> System::Xml::XmlDocument::CreateElement(const String &prefix, const String &localName, const String &namespaceURI)
Parameter | Type | Description |
---|---|---|
prefix | const String& | The prefix of the new element (if any). String::Empty and nullptr are equivalent. |
localName | const String& | The local name of the new element. |
namespaceURI | const String& | The namespace URI of the new element (if any). String::Empty and nullptr are equivalent. |
ReturnValue
The new XmlElement.
See Also
- Typedef SharedPtr
- Class XmlElement
- Class String
- Class XmlDocument
- Namespace System::Xml
- Library Aspose.PDF for C++
XmlDocument::CreateElement(const String&, const String&) method
Creates an XmlElement with the qualified name and XmlNode::get_NamespaceURI.
SharedPtr<XmlElement> System::Xml::XmlDocument::CreateElement(const String &qualifiedName, const String &namespaceURI)
Parameter | Type | Description |
---|---|---|
qualifiedName | const String& | The qualified name of the element. If the name contains a colon then the XmlNode::get_Prefix value will reflect the part of the name preceding the colon and the XmlDocument::get_LocalName value will reflect the part of the name after the colon. The qualified name cannot include a prefix of xmlns. |
namespaceURI | const String& | The namespace URI of the element. |
ReturnValue
The new XmlElement.
See Also
- Typedef SharedPtr
- Class XmlElement
- Class String
- Class XmlDocument
- Namespace System::Xml
- Library Aspose.PDF for C++