Click here to Skip to main content
15,880,796 members
Home / Discussions / C#
   

C#

 
QuestionError on DataAdapter.Fill() Pin
JacquesDP2-Apr-07 20:56
JacquesDP2-Apr-07 20:56 
AnswerRe: Error on DataAdapter.Fill() Pin
CPallini2-Apr-07 21:20
mveCPallini2-Apr-07 21:20 
GeneralRe: Error on DataAdapter.Fill() Pin
JacquesDP2-Apr-07 21:31
JacquesDP2-Apr-07 21:31 
AnswerRe: Error on DataAdapter.Fill() Pin
sooreeagt2-Apr-07 22:41
sooreeagt2-Apr-07 22:41 
GeneralRe: Error on DataAdapter.Fill() Pin
JacquesDP2-Apr-07 22:44
JacquesDP2-Apr-07 22:44 
Questionhow to implement xmlDOm in c# Pin
sweetnallu2-Apr-07 20:26
sweetnallu2-Apr-07 20:26 
AnswerRe: how to implement xmlDOm in c# Pin
Christian Graus2-Apr-07 20:49
protectorChristian Graus2-Apr-07 20:49 
AnswerRe: how to implement xmlDOm in c# Pin
Sathesh Sakthivel2-Apr-07 20:50
Sathesh Sakthivel2-Apr-07 20:50 
Hi Nalini try with this code. I hope this will help you.
<br />
using System;<br />
using System.Xml;<br />
<br />
namespace DomNodeList<br />
{<br />
  class Program<br />
  {<br />
    static void Main(string[] args)<br />
    {<br />
      XmlDocument doc = new XmlDocument();<br />
      doc.Load(@"D:\workjjf\scripts\xml\MajorKeys.xml"); //<path to XML here><br />
      XmlNodeList majorKeyList = doc.SelectNodes(@"/Root/MajorKey");<br />
      foreach (XmlNode majorKeyNode in majorKeyList)<br />
      {<br />
        XmlElement majorElement = majorKeyNode as XmlElement;<br />
        string majorAttValue = "<null>";<br />
        if (majorElement != null)<br />
        {<br />
          string attValue = majorElement.GetAttribute("att");<br />
          if (attValue != null)<br />
          {<br />
            majorAttValue = attValue;<br />
          }<br />
        }<br />
        Console.WriteLine(majorAttValue);<br />
        XmlNodeList minorKeyList = majorKeyNode.SelectNodes(@"MinorKey");<br />
        foreach (XmlNode minorKeyNode in minorKeyList)<br />
        {<br />
          XmlElement minorElement = minorKeyNode as XmlElement;<br />
          string minorAttValue = "<null>";<br />
          if (minorElement != null)<br />
          {<br />
            string attValue2 = minorElement.GetAttribute("att");<br />
            if (attValue2 != null)<br />
            {<br />
              minorAttValue = attValue2;<br />
            }<br />
          }<br />
          Console.WriteLine("\t" + minorAttValue);<br />
          XmlNodeList valueList = minorElement.SelectNodes("Value");<br />
          foreach (XmlNode valueNode in valueList)<br />
          {<br />
            Console.WriteLine("\t\t" + valueNode.InnerText);<br />
          }<br />
        }<br />
      }<br />
      Console.ReadLine();<br />
    }<br />
  }<br />
}<br />


Regards,

Satips.

GeneralRe: how to implement xmlDOm in c# Pin
Christian Graus2-Apr-07 21:21
protectorChristian Graus2-Apr-07 21:21 
GeneralRe: how to implement xmlDOm in c# Pin
714-Apr-07 17:52
714-Apr-07 17:52 
Questionhow to split string Pin
sooreeagt2-Apr-07 20:22
sooreeagt2-Apr-07 20:22 
AnswerRe: how to split string Pin
Martin#2-Apr-07 20:31
Martin#2-Apr-07 20:31 
AnswerRe: how to split string Pin
Vinay Dornala2-Apr-07 22:43
Vinay Dornala2-Apr-07 22:43 
GeneralRe: how to split string Pin
Martin#2-Apr-07 23:31
Martin#2-Apr-07 23:31 
QuestionPlz help me in changing position of Main menu Pin
EEmaan2-Apr-07 19:25
EEmaan2-Apr-07 19:25 
AnswerRe: Plz help me in changing position of Main menu Pin
Christian Graus2-Apr-07 20:50
protectorChristian Graus2-Apr-07 20:50 
Questiondownload file memory usage Pin
Planker2-Apr-07 17:51
Planker2-Apr-07 17:51 
AnswerRe: download file memory usage Pin
Phillip M. Hoff2-Apr-07 18:22
Phillip M. Hoff2-Apr-07 18:22 
QuestionHow to remove space in a String? Pin
Khoramdin2-Apr-07 16:16
Khoramdin2-Apr-07 16:16 
AnswerRe: How to remove space in a String? Pin
Christian Graus2-Apr-07 16:19
protectorChristian Graus2-Apr-07 16:19 
AnswerRe: How to remove space in a String? Pin
Muammar©2-Apr-07 20:00
Muammar©2-Apr-07 20:00 
QuestionRe: How to remove space in a String? Pin
JacquesDP2-Apr-07 21:00
JacquesDP2-Apr-07 21:00 
AnswerRe: How to remove space in a String? Pin
Muammar©2-Apr-07 21:26
Muammar©2-Apr-07 21:26 
GeneralRe: How to remove space in a String? Pin
Guffa2-Apr-07 21:38
Guffa2-Apr-07 21:38 
AnswerRe: How to remove space in a String? [modified] Pin
Muammar©2-Apr-07 21:49
Muammar©2-Apr-07 21:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.