score:1

My suggestion:

  • XPath
  • XSLT
  • XML Schemas

in this order. These are not required to learn LINQ to XML, but can provide a good background on what to do with XML documents.

score:1

It all depends on how much you want to learn and the reason you want to learn it.

For me, I've gotten pretty far just by knowing a few of the following with LINQ:

XDocument
XElement("ThisChildElement").Value
XElements()
XElements().InsertLinqCommandHere

When using XML as a way to store data, learning the basics of XML and LINQ to XML will take you a long way. I started by learning the very basics of how an XML document is structured and how to pull data out of an XML document using LINQ. Personally, I plan to add other concepts as necessary if I get into more advanced stuff.

score:0

Everything you wrote will help you, but you missed an important one, I guess it's not there cause it's not XML related, but it'll help you a lot to know SQL.

score:1

I agree with Ben's answer. None of those are prerequisites for learning LINQ to XML.

Jump in and start working with LINQ to XML and pick up those other things when you find a need for them.

With LINQ to XML you probably won't need XPath or XML readers or writers. I learned those before working with LINQ to XML because that's all that existed at the time. LINQ to XML is much simpler and should be easier to learn.

I'd like to know XSLT, but haven't had the time or real need to learn it.

You didn't mention which language you use. LINQ to XML is one area where VB.NET provides more richness than C# does. If you're curious what it looks like in VB.NET, there is a great set of "How Do I" videos by Beth Massi on LINQ in general with a few good ones covering LINQ to XML and XML Literals.

http://msdn.microsoft.com/en-us/vbasic/bb466226.aspx#linq


Related Articles