XmlReaderIsStartElement Method (String) |
Calls
MoveToContent and tests if the current content node is a start tag or empty element tag and if the
Name property of the element found matches the given argument.
Namespace: System.XmlAssembly: CSharpXamlForHtml5.System.Xml.dll (in CSharpXamlForHtml5.System.Xml.dll.dll) Version: 1.0.0.0
Syntax public virtual bool IsStartElement(
string name
)
Parameters
- name
- Type: SystemString
The string matched against the Name property of the element found.
Return Value
Type:
Booleantrue if the resulting node is an element and the Name property matches the specified string. false if a node type other than XmlNodeType.Element was found or if the element Name property does not match the specified string.
Exceptions Exception | Condition |
---|
XmlException | Incorrect XML is encountered in the input stream. |
See Also