Click here to Skip to main content
15,898,035 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Windows Forms Layout using Xml Pin
Devaang1110-Aug-09 23:45
Devaang1110-Aug-09 23:45 
GeneralRe: Windows Forms Layout using Xml Pin
annathor11-Aug-09 0:26
annathor11-Aug-09 0:26 
QuestionAdd up elements value by matching name element Pin
RossBradley10-Aug-09 11:49
RossBradley10-Aug-09 11:49 
AnswerRe: Add up elements value by matching name element Pin
Stuart Dootson10-Aug-09 21:58
professionalStuart Dootson10-Aug-09 21:58 
Questioncan i format xml file, suggestion please ? Pin
lazy_dude5-Aug-09 20:35
lazy_dude5-Aug-09 20:35 
AnswerRe: can i format xml file, suggestion please ? Pin
annathor10-Aug-09 21:21
annathor10-Aug-09 21:21 
GeneralRe: can i format xml file, suggestion please ? Pin
lazy_dude16-Aug-09 18:39
lazy_dude16-Aug-09 18:39 
QuestionHelp Pin
MrMcIntyre1-Aug-09 4:54
MrMcIntyre1-Aug-09 4:54 
Hi
I have created a C# XML Reader and was wondering if someone could have a look at the code to see if I have done it right.

Thanks

Andrew

-------------------------------

using System;
using System.Xml;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace MyProject
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
System.IO.StreamReader stream = new System.IO.StreamReader ("About.xml");
XmlTextReader reader = null;
reader = new XmlTextReader (stream);
while (reader.Read())
{
switch (reader.NodeType)
{
case XmlNodeType.Element: // The node is an Element.
Console.Write("<" + reader.Name);

while (reader.MoveToNextAttribute()) // Read attributes.
Console.Write(" " + reader.Name + "='" + reader.Value + "'");
Console.Write(">");
Console.WriteLine(">");
break;
case XmlNodeType.Text: //Display the text in each element.
Console.WriteLine (reader.Value);
break;
case XmlNodeType. EndElement: //Display end of element.
Console.Write("</" + reader.Name);
Console.WriteLine(">");
break;
}
}

}
}
}

Andrew McIntyre

AnswerRe: Help Pin
Mike Ellison1-Aug-09 10:52
Mike Ellison1-Aug-09 10:52 
AnswerRe: Help Pin
MrMcIntyre2-Aug-09 10:25
MrMcIntyre2-Aug-09 10:25 
GeneralRe: Help Pin
Mike Ellison3-Aug-09 3:28
Mike Ellison3-Aug-09 3:28 
AnswerRe: Help Pin
Richard MacCutchan31-Aug-09 23:37
mveRichard MacCutchan31-Aug-09 23:37 
AnswerRe: Help - Further Information Pin
Richard MacCutchan1-Sep-09 5:47
mveRichard MacCutchan1-Sep-09 5:47 
QuestionHow to response XMl format using SOAP protocol Pin
Sasmi_Office30-Jul-09 22:55
Sasmi_Office30-Jul-09 22:55 
QuestionxmlTextWriter error Pin
newXMLdeveloper28-Jul-09 6:57
newXMLdeveloper28-Jul-09 6:57 
QuestionRegarding the SOAP message Request and Response Pin
Sasmi_Office27-Jul-09 20:01
Sasmi_Office27-Jul-09 20:01 
Questioncreate xml .. [modified] Pin
Rajeshwar Code- Developer27-Jul-09 4:35
Rajeshwar Code- Developer27-Jul-09 4:35 
QuestionThe XML parse error 0xc00ce556 occurred on line number 1 Pin
Vimalsoft(Pty) Ltd24-Jul-09 0:59
professionalVimalsoft(Pty) Ltd24-Jul-09 0:59 
AnswerRe: The XML parse error 0xc00ce556 occurred on line number 1 Pin
DoctorMick24-Jul-09 1:17
DoctorMick24-Jul-09 1:17 
GeneralRe: The XML parse error 0xc00ce556 occurred on line number 1 Pin
Vimalsoft(Pty) Ltd24-Jul-09 1:24
professionalVimalsoft(Pty) Ltd24-Jul-09 1:24 
Questionweb application with XML Pin
ashwika4923-Jul-09 1:35
ashwika4923-Jul-09 1:35 
AnswerRe: web application with XML Pin
Muhammad Mazhar23-Jul-09 2:10
Muhammad Mazhar23-Jul-09 2:10 
AnswerRe: web application with XML Pin
Mike Ellison27-Jul-09 2:42
Mike Ellison27-Jul-09 2:42 
QuestionSpecifying unqiueness of an attribute in xsd. Pin
Comp_Users21-Jul-09 10:16
Comp_Users21-Jul-09 10:16 
AnswerRe: Specifying unqiueness of an attribute in xsd. Pin
Stuart Dootson21-Jul-09 11:15
professionalStuart Dootson21-Jul-09 11:15 

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.