views:

111

answers:

3

Greetings!

This is quite a newbie question but forgive me. Can anyone recommend a good place, either site or book, to get up to speed on the XML Frameworks with .Net. I think I have the basics down but I have the feeling it's not as elegant as it could be.

For example:

  1. When to use XMLDocument or XMLReader for finding elements
  2. How can I find a single element directly, is it possible without knowing the parent nodes?

So I reference/book recommendation would be welcome?

Thanks! :D

+1  A: 

Besides a good book (like this one) you might also need to bring your XML knowledge up to par. Check W3Schools for some great basic lessons. For example a solution to your second question should be XPath.

Gerrie Schenck
That book was good (I have a copy) it is .NET 1/1.1, so misses all the extensions in .NET 2.0, 3.0 and 3.5.
Richard
Most Microsoft Press books get upgrades...
Gerrie Schenck
'Applied XML Programming for Microsoft .NET' was published in 2002 so it will not cover LINQ to XML [http://msdn.microsoft.com/en-us/library/bb387048.aspx] and XMl Literals (VB.Net). The question didn't specifically mention them, but I just wanted to point that out.
Robert Claypool
+1  A: 

You can think about to use LINQ to XML of the 3.5 version of the .NET Framework. Scott Gutrhie published a good post in his blog using this and another features of c# 3.0. Here you can find more explanation about it.

Adones Cunha
A: 

Try,

WROX Professional ASP.NET 2.0 XML by Thiru

I my understanding its one of the outstanding book on .NET and XML