Click here to Skip to main content
15,558,352 members
Home / Discussions / C#
   

C#

 
QuestionError on DataAdapter.Fill() Pin
JacquesDP2-Apr-07 21:56
JacquesDP2-Apr-07 21:56 
AnswerRe: Error on DataAdapter.Fill() Pin
CPallini2-Apr-07 22:20
mveCPallini2-Apr-07 22:20 
GeneralRe: Error on DataAdapter.Fill() Pin
JacquesDP2-Apr-07 22:31
JacquesDP2-Apr-07 22:31 
AnswerRe: Error on DataAdapter.Fill() Pin
sooreeagt2-Apr-07 23:41
sooreeagt2-Apr-07 23:41 
GeneralRe: Error on DataAdapter.Fill() Pin
JacquesDP2-Apr-07 23:44
JacquesDP2-Apr-07 23:44 
Questionhow to implement xmlDOm in c# Pin
sweetnallu2-Apr-07 21:26
sweetnallu2-Apr-07 21:26 
AnswerRe: how to implement xmlDOm in c# Pin
Christian Graus2-Apr-07 21:49
mveChristian Graus2-Apr-07 21:49 
AnswerRe: how to implement xmlDOm in c# Pin
Sathesh Sakthivel2-Apr-07 21:50
Sathesh Sakthivel2-Apr-07 21: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 22:21
mveChristian Graus2-Apr-07 22:21 
GeneralRe: how to implement xmlDOm in c# Pin
714-Apr-07 18:52
714-Apr-07 18:52 
Questionhow to split string Pin
sooreeagt2-Apr-07 21:22
sooreeagt2-Apr-07 21:22 
AnswerRe: how to split string Pin
Martin#2-Apr-07 21:31
Martin#2-Apr-07 21:31 
AnswerRe: how to split string Pin
Vinay Dornala2-Apr-07 23:43
Vinay Dornala2-Apr-07 23:43 
GeneralRe: how to split string Pin
Martin#3-Apr-07 0:31
Martin#3-Apr-07 0:31 
QuestionPlz help me in changing position of Main menu Pin
EEmaan2-Apr-07 20:25
EEmaan2-Apr-07 20:25 
AnswerRe: Plz help me in changing position of Main menu Pin
Christian Graus2-Apr-07 21:50
mveChristian Graus2-Apr-07 21:50 
Questiondownload file memory usage Pin
Planker2-Apr-07 18:51
Planker2-Apr-07 18:51 
AnswerRe: download file memory usage Pin
Phillip M. Hoff2-Apr-07 19:22
Phillip M. Hoff2-Apr-07 19:22 
QuestionHow to remove space in a String? Pin
Khoramdin2-Apr-07 17:16
Khoramdin2-Apr-07 17:16 
AnswerRe: How to remove space in a String? Pin
Christian Graus2-Apr-07 17:19
mveChristian Graus2-Apr-07 17:19 
AnswerRe: How to remove space in a String? Pin
Muammar©2-Apr-07 21:00
Muammar©2-Apr-07 21:00 
QuestionRe: How to remove space in a String? Pin
JacquesDP2-Apr-07 22:00
JacquesDP2-Apr-07 22:00 
AnswerRe: How to remove space in a String? Pin
Muammar©2-Apr-07 22:26
Muammar©2-Apr-07 22:26 
GeneralRe: How to remove space in a String? Pin
Guffa2-Apr-07 22:38
Guffa2-Apr-07 22:38 
AnswerRe: How to remove space in a String? [modified] Pin
Muammar©2-Apr-07 22:49
Muammar©2-Apr-07 22: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.