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