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. XML Data

XML Data

Scheduled Pinned Locked Moved XML / XSL
databasecomalgorithmsxmlcode-review
3 Posts 2 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.
  • J Offline
    J Offline
    jontyler
    wrote on last edited by
    #1

    Please forgive my ignorance...I am trying to learn XML while working on a project that may not be able to be done...not sure. The goal of my project is to create a configuration file that feeds a scheduled program details about reports that need to be run from a database. The details of the "QUERIES.XML" file should contain a "Report" Element. The "Report" element should contain a "Title", "Query", and "Recipients" elements. The Title and Query elements are good. I am having trouble reading the recipients though. The recipients element should have two elements, "Name" and "Address" [e-mail address]. I have tried to create a DataSet but that only reads the Title and Query elements, but does not pick up any of the recipient information. Here is a sample of my XML file, which I am not even sure is correct. I have been searching all day until I am cross-eyed and I don't know what I am missing. Test Report select Col1, Col2, Col3 FROM Table1 WHERE Criteria='this' John Smith

    john.smith@domain.com

    Joe Williams

    joe.williams@domain.com

    I have also tried a variation of the file that looks like this: Test Report select Col1, Col2, Col3 FROM Table1 WHERE Criteria='this'

    john.smith@company.com

    joe.williams@company.com

    I am not looking for anyone to write code for me...I need some direction on where to go so I can learn and improve my skill. Thanks

    D 1 Reply Last reply
    0
    • J jontyler

      Please forgive my ignorance...I am trying to learn XML while working on a project that may not be able to be done...not sure. The goal of my project is to create a configuration file that feeds a scheduled program details about reports that need to be run from a database. The details of the "QUERIES.XML" file should contain a "Report" Element. The "Report" element should contain a "Title", "Query", and "Recipients" elements. The Title and Query elements are good. I am having trouble reading the recipients though. The recipients element should have two elements, "Name" and "Address" [e-mail address]. I have tried to create a DataSet but that only reads the Title and Query elements, but does not pick up any of the recipient information. Here is a sample of my XML file, which I am not even sure is correct. I have been searching all day until I am cross-eyed and I don't know what I am missing. Test Report select Col1, Col2, Col3 FROM Table1 WHERE Criteria='this' John Smith

      john.smith@domain.com

      Joe Williams

      joe.williams@domain.com

      I have also tried a variation of the file that looks like this: Test Report select Col1, Col2, Col3 FROM Table1 WHERE Criteria='this'

      john.smith@company.com

      joe.williams@company.com

      I am not looking for anyone to write code for me...I need some direction on where to go so I can learn and improve my skill. Thanks

      D Offline
      D Offline
      Devang_0101
      wrote on last edited by
      #2

      Hi jontyler Here I think you have to create two different data tables for it, and put them into data set. Thanks, Devaang

      J 1 Reply Last reply
      0
      • D Devang_0101

        Hi jontyler Here I think you have to create two different data tables for it, and put them into data set. Thanks, Devaang

        J Offline
        J Offline
        jontyler
        wrote on last edited by
        #3

        Thanks, Devaang...I was sorta afraid I would get that kind of response. I guess I will redesign and put it back into a small db file.

        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