Here are the examples of the csharp api System.Xml.XmlReader.ReadToFirstChildElement() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : XmlWriterExtensions.cs
with Apache License 2.0
from DataBooster
with Apache License 2.0
from DataBooster
private static void ReadElements(this XmlReader reader, IDictionary<string, object> dynamicObject, BindableDynamicObject.XmlSettings xmlSettings)
{
string ns = reader.NamespaceURI;
int depth = reader.Depth + 1;
if (reader.ReadToFirstChildElement())
{
while (reader.Depth >= depth)
{
if (reader.NodeType == XmlNodeType.Element && reader.Depth == depth && reader.NamespaceURI == ns)
dynamicObject[reader.LocalName] = reader.ReadValue(xmlSettings) ?? DBNull.Value;
else
reader.Read();
}
reader.Skip();
}
}