[RESOLVED] A LINQ query ?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: [RESOLVED] A LINQ query ?

  1. #1
    Join Date
    Jun 2008
    Posts
    57

    [RESOLVED] A LINQ query ?

    Hello there.

    If we have a XML file like this :

    Code:
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <Information>
      <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="?" />
    </Information>
    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 :

    Code:
    <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
    Location
    Chicago, IL
    Posts
    14,961

    Re: A LINQ query ?

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

    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
    Posts
    57

    Re: A LINQ query ?

    Thanks a lot, I've got the answer here
    http://social.msdn.microsoft.com/For...0-73b054466aad

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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center