Results 1 to 3 of 3

Thread: nodes in XML

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2007
    Posts
    26

    nodes in XML

    Code:
     XmlDocument doc = new XmlDocument();
               doc.Load("contor.xml");
               XmlNodeList items = doc.SelectNodes(@"Aparate/Aparat/Pozitii/Pozitie");
               foreach (XmlNode node in items)
               {
                   if (node.LocalName == "Pozitie")
                   {
    
                      DataRow dr = dp.NewRow();
                       dr["Produs"] = node.ChildNodes[0].InnerXml;
                       dr["ContorInitial"] = node.ChildNodes[1].InnerXml;
                       dr["ContorFinal"] = node.ChildNodes[2].InnerXml;
                       dp.Rows.Add(dr);
    
                   }
               }
    i have a DataSet Dset and a DataTable dp
    how i put in Dataset the data from DataTable?

    now i want to put
    Last edited by King Abadon; May 16th, 2007 at 05:24 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width