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. General Programming
  3. XML / XSL
  4. Join Query in XML

Join Query in XML

Scheduled Pinned Locked Moved XML / XSL
databasexmlhelpquestion
1 Posts 1 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.
  • C Offline
    C Offline
    Chetan Ranpariya
    wrote on last edited by
    #1

    Hi All, In my web application I am using XML as a database. I am using XML schema for data definition. I am using dataset and dataview to retrive datafrom and XML file. I am doing like following. Dataset dstDemo = new Dataset(); dstDemo.ReadXMLSchema(MapPath("../Database/File.xsd")); dstDemo.ReadXML(MapPath("../Database/File.xml")); DataView dvCustomers = new DataView(dstDemo.Tables["Customers"]); DataView dvOrders = new DataView(dstDemo.Tables["Orders"]); Here Tables "Customers" and "Orders" are the two tables at the same level in xml file and both contain "CustomerID" column. This way I can fetch whole the table from DataSet to DataView and to select some rows from the dataview I am using RowFilter Property of dataview. dvCustomers.RowFilter = "CustomerCity = 'Bangalore'; dvOrders.RowFilter = "OrderDate = '03/02/2006'; But what if I want only few records from "Orders" Table depending upon "CusotmerIDs" got from the "Customers" table. I mean how can I use Queries like in SQL with XML files. Do any one have any idea. Any type of help will be appriciated. Thank u all in advance. Chetan Ranpariya.

    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