CSharp examples for System.Xml:XML Schema
Get All Groups from XmlSchema
using System.Xml.Schema; using System.Xml; using System.Text; using System.Linq; using System.Diagnostics; using System.Collections.Generic; using System.Collections; using System;//from w w w. j a v a 2s . co m public class Main{ public static List<XmlSchemaGroup> GetAllGroups(XmlSchema schema) { List<XmlSchemaGroup> groups = new List<XmlSchemaGroup>(); foreach (XmlSchemaGroup item in schema.Groups.Values) { groups.Add(item); } return groups; } }