LINQ - Sample Queries

This project contains about 101 samples using LINQ.

 
 
 
 
 
4.8 Star
(89)
175,644 times
Add to favorites
3/13/2012
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

VB.NET
C#
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- This file is excerpted from "XML Query Use Cases" (http://www.w3.org/TR/xquery-use-cases/)
Copyright (c) 2007 W3C (R) (MIT, ERCIM, Keio).  All Rights Reserved.  W3C liability, trademark and document use rules apply. 
The Status section of "XML Query Use Cases" states as follows:
Status of this Document
This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.
This is the W3C Working Group Note of "XML Query (XQuery) Use Cases", produced by the W3C XML Query Working Group, part of the XML Activity. This document is being published as a Working Group Note to persistently record the Use Cases that guided the development of XQuery 1.0: An XML Query Language and its associated specifications as W3C Recommendations.
Please submit comments about this document using W3C's public Bugzilla system (instructions can be found at http://www.w3.org/XML/2005/04/qt-bugzilla). If access to that system is not feasible, you may send your comments to the W3C XSLT/XPath/XQuery public comments mailing list, public-qt-comments@w3.org. It will be very helpful if you include the string [XQRecUseCases] in the subject line of your report, whether made in Bugzilla or in email. Each Bugzilla entry and email message should contain only one comment. Archives of the comments and responses are available at http://lists.w3.org/Archives/Public/public-qt-comments/.
Publication as a Working Group Note does not imply endorsement by the W3C Membership. At the time of publication, work on this document was considered complete and no further revisions are anticipated. It is a stable document and may be used as reference material or cited from another document. However, this document may be updated, replaced, or made obsolete by other documents at any time.
This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy .
-->
<news>
  <news_item>
    <title> Gorilla Corporation acquires YouNameItWeIntegrateIt.com </title>
    <content>
      <par>
        Today, Gorilla Corporation announced that it will purchase
        YouNameItWeIntegrateIt.com. The shares of
        YouNameItWeIntegrateIt.com dropped $3.00 as a result of this
        announcement.
      </par>

      <par>
        As a result of this acquisition, the CEO of
        YouNameItWeIntegrateIt.com Bill Smarts resigned. He did not
        announce what he will do next.  Sources close to
        YouNameItWeIntegrateIt.com hint that Bill Smarts might be
        taking a position in Foobar Corporation.
      </par>

      <par>
        YouNameItWeIntegrateIt.com is a leading systems integrator
        that enables <quote>brick and mortar</quote> companies to
        have a presence on the web.
      </par>

    </content>
    <date>1-20-2000</date>
    <author>Mark Davis</author>
    <news_agent>News Online</news_agent>
  </news_item>

  <news_item>
    <title>
      Foobar Corporation releases its new line of Foo products
      today
    </title>
    <content>
      <par>
        Foobar Corporation releases the 20.9 version of its Foo
        products.  The new version of Foo products solve known
        performance problems which existed in 20.8 line and
        increases the speed of Foo based products tenfold. It also
        allows wireless clients to be connected to the Foobar
        servers.
      </par>
      <par>
        The President of Foobar Corporation announced that they
        were proud to release 20.9 version of Foo products and
        they will upgrade existing customers <footnote>
          where
          service agreements exist
        </footnote>
        promptly. TheAppCompany Inc. immediately announced that it
        will release the new version of its products to utilize
        the 20.9 architecture within the next three months.
      </par>
      <figure>
        <title>
          Presidents of Foobar Corporation and TheAppCompany
          Inc. Shake Hands
        </title>
        <image source="handshake.jpg"/>
      </figure>
    </content>
    <date>1-20-2000</date>
    <news_agent>Foobar Corporation</news_agent>
  </news_item>

  <news_item>
    <title>
      Foobar Corporation is suing Gorilla Corporation for
      patent infringement
    </title>
    <content>
      <par>
        In surprising developments today, Foobar Corporation
        announced that it is suing Gorilla Corporation for patent
        infringement. The patents that were mentioned as part of the
        lawsuit are considered to be the basis of Foobar
        Corporation's <quote>Wireless Foo</quote> line of products.
      </par>
      <par>
        The tension between Foobar and Gorilla Corporations has
        been increasing ever since the Gorilla Corporation acquired
        more than 40 engineers who have left Foobar Corporation,
        TheAppCompany Inc. and YouNameItWeIntegrateIt.com over the
        past 3 months. The engineers who have left the Foobar
        corporation and its partners were rumored to be working on
        the next generation of server products and applications which
        will directly compete with Foobar's Foo 20.9 servers. Most of
        the engineers have relocated to Hawaii where the Gorilla
        Corporation's server development is located.
      </par>
    </content>
    <date>1-20-2000</date>
    <news_agent>Reliable News Corporation</news_agent>
  </news_item>
</news>