This private method adds a text element to the XML document as the last child of the current element.

Namespace: System.Xml.Directory
Assembly: System.Xml.Directory (in System.Xml.Directory.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static void addTextElement(
	XmlDocument doc,
	XmlElement nodeParent,
	string strTag,
	string strValue
)
Visual Basic
Public Shared Sub addTextElement ( 
	doc As XmlDocument,
	nodeParent As XmlElement,
	strTag As String,
	strValue As String
)
Visual C++
public:
static void addTextElement(
	XmlDocument^ doc, 
	XmlElement^ nodeParent, 
	String^ strTag, 
	String^ strValue
)
F#
static member addTextElement : 
        doc : XmlDocument * 
        nodeParent : XmlElement * 
        strTag : string * 
        strValue : string -> unit 

Parameters

doc
Type: System.Xml..::..XmlDocument
The XML document
nodeParent
Type: System.Xml..::..XmlElement
Parent of the node we are adding
strTag
Type: System..::..String
The tag of the element to add
strValue
Type: System..::..String
The text value of the new element

See Also