System::Xml::XmlDocument::CreateNode method

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)
ParameterTypeDescription
nodeTypeStringconst String&String version of the XmlNodeType of the new node. This parameter must be one of the values listed in the table below.
nameconst 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.
namespaceURIconst String&The namespace URI of the new node.

ReturnValue

The new XmlNode.

Remarks

The nodeTypeString parameter is case sensitive and must be one of the values in the following table:
nodeTypeStringXmlNodeType
attributeAttribute
cdatasectionCDATA
commentComment
documentDocument
documentfragmentDocumentFragment
documenttypeDocumentType
elementElement
entityreferenceEntityReference
processinginstructionProcessingInstruction
significantwhitespaceSignificantWhitespace
textText
whitespaceWhitespace

See Also

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)
ParameterTypeDescription
typeXmlNodeTypeThe XmlNodeType of the new node.
nameconst 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.
namespaceURIconst String&The namespace URI of the new node.

ReturnValue

The new XmlNode.

See Also

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)
ParameterTypeDescription
typeXmlNodeTypeThe XmlNodeType of the new node.
prefixconst String&The prefix of the new node.
nameconst String&The local name of the new node.
namespaceURIconst String&The namespace URI of the new node.

ReturnValue

The new XmlNode.

See Also