25 return new XmlReaderSettings
28 IgnoreWhitespace =
true,
29 IgnoreComments =
true,
30 IgnoreProcessingInstructions =
true,
38 public static bool IsElement(XmlReader reader,
string localName)
40 return reader.NodeType == XmlNodeType.Element
41 && reader.LocalName.Equals(localName, StringComparison.OrdinalIgnoreCase);
51 if (reader.IsEmptyElement)
55 return reader.ReadElementContentAsString();
Static utility class providing helpers for forward-only XmlReader-based (SAX-style) parsing,...
static string ReadElementText(XmlReader reader)
Reads the string content of a simple leaf element (one that contains only text, no child elements)....
static bool IsElement(XmlReader reader, string localName)
Returns true when the reader is positioned on a start element whose LocalName matches localName (Ord...
static XmlReaderSettings CreateSettings()
Creates standardized XmlReaderSettings for all reader plug-ins: XmlResolver=null (security),...