Xmlnode_Object Value Property

Returns the value of the current node as a String or sets the value of the current node.

… xmlnode_object.Value
-or-
xmlnode_object.Value =string_value

Prerequisites

None

Parameters

None

Remarks

If a node does not have a value directly, any child text nodes are accessed transparently and their values are set or returned.

Examples

Dim doc As XmlDoc
Dim
root As XmlNode
Dim
elem As XmlNode
doc = New XmlDoc("my_doc")
root = doc.DocumentElement
elem = root.AddElementNode("section1", "Data for section 1")
Console.Writeline(elem.Value) ' Writes "Data for section 1"

See Also

XML Classes | xmlnode_object.Name | xmlnode_object.Type