Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. XML Query in asp.net

XML Query in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasexmltutorial
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Priyagdpl
    wrote on last edited by
    #1

    Hi All, Please tell me how to write XML query in Asp.net. I hav temple.xml file which contain data of temple. now i want to apply search on it.

    C N 2 Replies Last reply
    0
    • P Priyagdpl

      Hi All, Please tell me how to write XML query in Asp.net. I hav temple.xml file which contain data of temple. now i want to apply search on it.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Well, this is not an ASP.NET question really, it's a C# or VB.NET question. You can use an XMLDocument and the DOM to search your XML, or I believe you can use LINQ, if you're using 3.5

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      1 Reply Last reply
      0
      • P Priyagdpl

        Hi All, Please tell me how to write XML query in Asp.net. I hav temple.xml file which contain data of temple. now i want to apply search on it.

        N Offline
        N Offline
        Nishant Singh
        wrote on last edited by
        #3

        Hi Priya , U cannot directly Query an XML Decument in ASP.Net 2.0 , However you need to parse them to check for the desired result , It got significantly easier with LINQ introduced , As per your requirement if you are using ASP.net 2.0 create an instance of XMLTextReader and read thru the document

        C 1 Reply Last reply
        0
        • N Nishant Singh

          Hi Priya , U cannot directly Query an XML Decument in ASP.Net 2.0 , However you need to parse them to check for the desired result , It got significantly easier with LINQ introduced , As per your requirement if you are using ASP.net 2.0 create an instance of XMLTextReader and read thru the document

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          XMLDocument is far better for searching.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          N 1 Reply Last reply
          0
          • C Christian Graus

            XMLDocument is far better for searching.

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            N Offline
            N Offline
            Nishant Singh
            wrote on last edited by
            #5

            Yeh Chris, I was wrong i did some searching XMLTextReader is a fast forward way of reading data from an xmlDocument . Much like DataReader ........

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups