CreateNode()
Contents
[
Hide
]XmlDocument::CreateNode(XmlNodeType, const String&, const String&, const String&) method
Creates a XmlNode with the specified XmlNodeType, XmlNode::get_Prefix, XmlDocument::get_Name, and XmlNode::get_NamespaceURI.
virtual SharedPtr<XmlNode> System::Xml::XmlDocument::CreateNode(XmlNodeType type, const String &prefix, const String &name, const String &namespaceURI)
Arguments
Parameter | Type | Description |
---|---|---|
type | XmlNodeType | The XmlNodeType of the new node. |
prefix | const String& | The prefix of the new node. |
name | const String& | The local name of the new node. |
namespaceURI | const String& | The namespace URI of the new node. |
Return Value
The new XmlNode.
XmlDocument::CreateNode(const String&, const String&, const String&) method
Creates an XmlNode with the specified node type, XmlDocument::get_Name, and XmlNode::get_NamespaceURI.
virtual SharedPtr<XmlNode> System::Xml::XmlDocument::CreateNode(const String &nodeTypeString, const String &name, const String &namespaceURI)
Arguments
Parameter | Type | Description |
---|---|---|
nodeTypeString | const String& | String version of the XmlNodeType of the new node. This parameter must be one of the values listed in the table below. |
name | const String& | The qualified name of the new node. If the name contains a colon, it is parsed into XmlNode::get_Prefix and XmlDocument::get_LocalName components. |
namespaceURI | const String& | The namespace URI of the new node. |
Return Value
The new XmlNode.
Remarks
The nodeTypeString parameter is case sensitive and must be one of the values in the following table:
nodeTypeString | XmlNodeType |
---|---|
attribute | Attribute |
cdatasection | CDATA |
comment | Comment |
document | Document |
documentfragment | DocumentFragment |
documenttype | DocumentType |
element | Element |
entityreference | EntityReference |
processinginstruction | ProcessingInstruction |
significantwhitespace | SignificantWhitespace |
text | Text |
whitespace | Whitespace |
XmlDocument::CreateNode(XmlNodeType, const String&, const String&) method
Creates an XmlNode with the specified XmlNodeType, XmlDocument::get_Name, and XmlNode::get_NamespaceURI.
virtual SharedPtr<XmlNode> System::Xml::XmlDocument::CreateNode(XmlNodeType type, const String &name, const String &namespaceURI)
Arguments
Parameter | Type | Description |
---|---|---|
type | XmlNodeType | The XmlNodeType of the new node. |
name | const String& | The qualified name of the new node. If the name contains a colon then it is parsed into XmlNode::get_Prefix and XmlDocument::get_LocalName components. |
namespaceURI | const String& | The namespace URI of the new node. |
Return Value
The new XmlNode.
See Also
- Enum XmlNodeType
- Typedef SharedPtr
- Class XmlNode
- Class String
- Class XmlDocument
- Namespace System::Xml
- Library Aspose.Slides