Click or drag to resize
XmlReaderReadElementString Method (String, String)
Checks that the LocalName and NamespaceURI properties of the element found matches the given strings before reading a text-only element.

Namespace: System.Xml
Assembly: CSharpXamlForHtml5.System.Xml.dll (in CSharpXamlForHtml5.System.Xml.dll.dll) Version: 1.0.0.0
Syntax
C#
public virtual string ReadElementString(
	string localname,
	string ns
)

Parameters

localname
Type: SystemString
The local name to check.
ns
Type: SystemString
The namespace URI to check.

Return Value

Type: String
The text contained in the element that was read. An empty string if the element is empty (<item></item> or <item/>).
Exceptions
ExceptionCondition
XmlExceptionIf the next content node is not a start tag; if the element LocalName or NamespaceURI do not match the given arguments; or if the element found does not contain a simple text value.
See Also