To be honest, this is simply ugly. If you really into LINQ, then write this in LINQ to XSD instead of LINQ to XML.
Between XQuery and LINQ to XSD, they are too close to be compared just based on the face value. With .Net, LINQ obviously provides some consistancy between different types of objects being queried against.
Last edited by PeterPeiGuo; February 17th, 2009 at 12:29 AM..
|