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. C#
  4. Get any specific value from this xml [modified]

Get any specific value from this xml [modified]

Scheduled Pinned Locked Moved C#
htmlcomxml
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.
  • B Offline
    B Offline
    Bummer8
    wrote on last edited by
    #1

    EDIT: the XML isn't showing (download here: http://rapidshare.com/files/59995138/test.xml.html) I have this XML. I use the code below to open the XML and treat it as a DataSet and view it in a datagrid. try { dataset = ReadXML(szPassword); dataGrid

    P 1 Reply Last reply
    0
    • B Bummer8

      EDIT: the XML isn't showing (download here: http://rapidshare.com/files/59995138/test.xml.html) I have this XML. I use the code below to open the XML and treat it as a DataSet and view it in a datagrid. try { dataset = ReadXML(szPassword); dataGrid

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      What XML? I don't see anything.

      Paul Marfleet

      B 1 Reply Last reply
      0
      • P pmarfleet

        What XML? I don't see anything.

        Paul Marfleet

        B Offline
        B Offline
        Bummer8
        wrote on last edited by
        #3

        I edited my post. I don't know how to make the xml visible in the code. there is a download link. Thanks for the reply.

        D 1 Reply Last reply
        0
        • B Bummer8

          I edited my post. I don't know how to make the xml visible in the code. there is a download link. Thanks for the reply.

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Check the little box next to "Ignore HTML tags in this message..." before you hit "Post Message". You can go back and edit your message to turn this option on.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          B 1 Reply Last reply
          0
          • D Dave Kreskowiak

            Check the little box next to "Ignore HTML tags in this message..." before you hit "Post Message". You can go back and edit your message to turn this option on.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            B Offline
            B Offline
            Bummer8
            wrote on last edited by
            #5

            Found a solution int nPrincipal_Id = 0; foreach (DataRow myRow in dataset.Tables["principal"].Rows) { if (myRow["name"].ToString()==textBox2.Text) { nPrincipal_Id = Convert.ToInt32(myRow["principal_Id"].ToString()); } } foreach (DataRow myRow in dataset.Tables["grant"].Rows) { if (myRow["principal_Id"].ToString() == nPrincipal_Id.ToString()) textBox1.Text += myRow["name"].ToString() + Environment.NewLine; }

            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