XmlReaderReadElementString Method (String) |
Checks that the
Name property of the element found matches the given string before reading a text-only element.
Namespace: System.XmlAssembly: CSharpXamlForHtml5.System.Xml.dll (in CSharpXamlForHtml5.System.Xml.dll.dll) Version: 1.0.0.0
Syntax public virtual string ReadElementString(
string name
)
Parameters
- name
- Type: SystemString
The name to check.
Return Value
Type:
StringThe text contained in the element that was read. An empty string if the element is empty (<item></item> or <item/>).
Exceptions Exception | Condition |
---|
XmlException | If the next content node is not a start tag; if the element Name does not match the given argument; or if the element found does not contain a simple text value. |
See Also