CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2008

    [RESOLVED] A LINQ query ?

    Hello there.

    If we have a XML file like this :

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
      <Data ID="0" X="?" Y="?" Z="?" />
      <Data ID="1" X="?" Y="?" Z="?" />
      <Data ID="2" X="?" Y="?" Z="?" />
      <Data ID="3" X="?" Y="?" Z="?" />
      <Data ID="4" X="?" Y="?" Z="?" />
      <Data ID="5" X="?" Y="?" Z="?" />
      <Data ID="6" X="?" Y="?" Z="?" />
      <Data ID="7" X="?" Y="?" Z="?" />
      <Data ID="8" X="?" Y="?" Z="?" />
      <Data ID="9" X="?" Y="?" Z="?" />
    How can we get this query :
    The query : All nodes with the same X,Y,Z attributes.
    e.g :
    The query have to return something like this :

    <Data ID="0" X="1" Y="2" Z="3" />
    <Data ID="1" X="1" Y="2" Z="3" />
    <Data ID="8" X="1" Y="2" Z="3" />
    Thanks in advance

  2. #2
    Join Date
    Jan 2006
    Fox Lake, IL

    Re: A LINQ query ?

    Probably. What parameters are you supplying, or do you want all matches?

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Jun 2008

    Re: A LINQ query ?

    Thanks a lot, I've got the answer here

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)