public static void FromXml(System.IO.Stream stream, PackageMatchDelegate callback) { System.Xml.XmlTextReader reader = new System.Xml.XmlTextReader(stream); FromXml(reader, callback); reader.Close(); stream.Close(); }
private static void FromXml(System.Xml.XmlTextReader reader, PackageMatchDelegate callback) { reader.MoveToContent(); while (reader.Read()) { if (reader.NodeType == System.Xml.XmlNodeType.Element && reader.LocalName == "match") { PackageMatch match = ParseMatch(reader); if (!callback(match)) { break; } } } reader.Close(); }
public static void FromXml (System.IO.Stream stream, PackageMatchDelegate callback) { System.Xml.XmlTextReader reader = new System.Xml.XmlTextReader (stream); FromXml (reader, callback); reader.Close (); stream.Close (); }
private static void FromXml (System.Xml.XmlTextReader reader, PackageMatchDelegate callback) { reader.MoveToContent (); while (reader.Read ()) { if (reader.NodeType == System.Xml.XmlNodeType.Element && reader.LocalName == "match") { PackageMatch match = ParseMatch (reader); if (!callback (match)) break; } } reader.Close (); }