Skip to content

HOw to use xml.Linq

vinod

Asked Oct 30, 2008, 5:31 AM EDT5 answers
Share
LinkedInX
Hi to all ....
Please guide me to use Linq to XML. Just i want to use LINQ language to access XMLs. But while i am adding System.Xml.Linq  namespace I can't find that. I am using .Net FrameWork2.0 with VisualStudio2005. As known to me LINQ is in-buited with .net3.5. Can't we use this with .net2.0,or ahall we need Linq dll to be  downloaded?
Please help me any one.

5 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Bechir Bejaoui
    +1
    Have you ever tried to add a reference to the namespace, I mean in the solution exporer you right click on the project and click add reference then add a System.xml.Linq from the .Net tab
    +1
  • +1
    yes i tried many times .. but can't.. what to do?
    +1
  • +1
    yes i tried many times .. but can't.. what to do?
    +1
  • Bechir Bejaoui
    +1
    OK, I have one question are you using VS2005 or VS2008
    +1
  • +1
    sorry for the late from the past few days i didn't see the reply,
    I am using VS2005, .net Frame Work 2.0. As i know VS2008 and FW 3.0 and 3.5 has built in LINQ.
    My doubt is  ,can't we use LINQ with vs2005 and F.Work 2.0?
    +1