<pre name="code" class="csharp"> XElement xDef = Definations.xmlDefinations;
XElement xws = (from elem in xDef.Elements("gdb_meta").First().Elements("workspace")
where elem.Attribute("id").Value == "GDB"
select elem).First();
String strSchemes = xws.Attribute("schemes").Value;
String schemePath = Path.Combine(Application.StartupPath, @"..\..\Resources", strSchemes,
"地类图斑.xml");
XDocument xdScheme = XDocument.Load(schemePath);
xmlScheme = xdScheme.Root;
//实验一下效果