Hiho C# people!
I have a problem while compiling this:
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Xml.Linq;
namespace ConsoleApplication5
{
class Program
{
static void Main(string[] args)
{
XDocument test = XDocument.Load(dataPath + "c:\\test.xml");
var result = new XElement("dbs", from test.Descendants("dbs") select new XElement("db", a.Element("id").Value));
Console.WriteLine(result);
}
}
}
Error 1 ) expected C:\..\Program.cs 14 51 ConsoleApplication5
Error 2 ; expected C:\..\Program.cs 14 75 ConsoleApplication5
Error 3 ; expected C:\..\Program.cs 14 82 ConsoleApplication5
Error 4 ; expected C:\..\Program.cs 14 123 ConsoleApplication5
Error 5 Invalid expression term ')' C:\..\Program.cs 14 123 ConsoleApplication5
I think i forgot a reference and using System.somthing
Can someone helpe me out?