How can i find complexType element knowing it's name(station)? I'm beginner Here is an entire xsd code: http://pastebin.com/ymuPDCCb This doesn't work.
private XElement GetComplexType(string typeName)
{
XElement complexType = xsdSchema.Elements("complexType")
.Where(a => a.Attributes("name").FirstOrDefault() != null && a.Attribute("name").Value==typeName)
.FirstOrDefault();
return complexType;
}