Click here to Skip to main content
15,898,373 members
Home / Discussions / C#
   

C#

 
AnswerRe: Help about List box VScroll Pin
Ravi Bhavnani15-Apr-06 8:25
professionalRavi Bhavnani15-Apr-06 8:25 
GeneralRe: Help about List box VScroll Pin
crazymubashir16-Apr-06 20:59
crazymubashir16-Apr-06 20:59 
GeneralRe: Help about List box VScroll Pin
Ravi Bhavnani16-Apr-06 21:03
professionalRavi Bhavnani16-Apr-06 21:03 
GeneralRe: Help about List box VScroll Pin
crazymubashir16-Apr-06 21:04
crazymubashir16-Apr-06 21:04 
QuestionXML file reading Pin
rahultaing14-Apr-06 22:15
rahultaing14-Apr-06 22:15 
AnswerRe: XML file reading Pin
Guffa14-Apr-06 22:33
Guffa14-Apr-06 22:33 
AnswerRe: XML file reading Pin
rizwan.afsar14-Apr-06 22:58
rizwan.afsar14-Apr-06 22:58 
AnswerRe: XML file reading Pin
VaibhavJ15-Apr-06 1:21
VaibhavJ15-Apr-06 1:21 
Hi,

You can also have a look at the code below..Hope it's useful to u..

class ReadXml
{
//private const String filename = "c:\\ala.xml";
private const String filename ="data.xml";

static void Main(string[] args)
{
XmlTextReader txtreader = null;
XmlValidatingReader reader = null;

try
{
// Load the reader with the data file and ignore
// all whitespace nodes.
txtreader = new XmlTextReader(filename);
txtreader.WhitespaceHandling = WhitespaceHandling.None;

// Implement the validating reader over the text reader.
reader = new XmlValidatingReader(txtreader);
reader.ValidationType = ValidationType.None;

// Parse the file and display each of the nodes.
while (reader.Read())
{
switch (reader.NodeType)
{
case XmlNodeType.Element:
Console.Write("\t<{0}>\n", reader.Name); break;

case XmlNodeType.Text:
Console.Write("\t{0}\n",reader.Value);
break;

case XmlNodeType.CDATA:
Console.Write("", reader.Value);
break;

case XmlNodeType.ProcessingInstruction:
Console.Write("", reader.Name, reader.Value);
break;

case XmlNodeType.Comment:
Console.Write("", reader.Value);
break;

case XmlNodeType.XmlDeclaration:
Console.Write("\n");
break;

case XmlNodeType.Document:
break;

case XmlNodeType.DocumentType:
Console.Write("\n", reader.Name);
break;
}
}
}

finally
{
if (reader!=null)
reader.Close();
}

Console.ReadLine();

}
}

Thank you,
Vaibhav
QuestionAlgorithms List of IIS Pin
hung_ngole14-Apr-06 21:42
hung_ngole14-Apr-06 21:42 
QuestionReleasing a file Pin
Yevgeny Efter14-Apr-06 21:26
Yevgeny Efter14-Apr-06 21:26 
AnswerRe: Releasing a file Pin
Dave Kreskowiak15-Apr-06 6:57
mveDave Kreskowiak15-Apr-06 6:57 
AnswerRe: Releasing a file Pin
Judah Gabriel Himango15-Apr-06 16:41
sponsorJudah Gabriel Himango15-Apr-06 16:41 
QuestionBase64 Encoded Xml File Pin
rahultaing14-Apr-06 21:21
rahultaing14-Apr-06 21:21 
QuestionGeneric.List Pin
GreenApple3014-Apr-06 20:50
GreenApple3014-Apr-06 20:50 
AnswerRe: Generic.List Pin
Judah Gabriel Himango15-Apr-06 16:44
sponsorJudah Gabriel Himango15-Apr-06 16:44 
AnswerRe: Generic.List Pin
Graham Nimbley16-Apr-06 14:48
Graham Nimbley16-Apr-06 14:48 
QuestionConverting Date from Email Header to C# DateTime Pin
emran83414-Apr-06 19:49
emran83414-Apr-06 19:49 
AnswerRe: Converting Date from Email Header to C# DateTime Pin
Ravi Bhavnani15-Apr-06 8:04
professionalRavi Bhavnani15-Apr-06 8:04 
GeneralRe: Converting Date from Email Header to C# DateTime Pin
emran83416-Apr-06 8:39
emran83416-Apr-06 8:39 
GeneralRe: Converting Date from Email Header to C# DateTime Pin
Ravi Bhavnani16-Apr-06 8:45
professionalRavi Bhavnani16-Apr-06 8:45 
QuestionListView Items Display Pin
rahultaing14-Apr-06 19:12
rahultaing14-Apr-06 19:12 
AnswerRe: ListView Items Display Pin
Ravi Bhavnani14-Apr-06 19:36
professionalRavi Bhavnani14-Apr-06 19:36 
QuestionController for IIS Pin
hung_ngole14-Apr-06 18:44
hung_ngole14-Apr-06 18:44 
QuestionHowto Reuse Embeded Resource ? Pin
zolfaghari14-Apr-06 17:12
zolfaghari14-Apr-06 17:12 
AnswerRe: Howto Reuse Embeded Resource ? Pin
g00fyman14-Apr-06 23:43
g00fyman14-Apr-06 23:43 

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.