Click here to Skip to main content
15,900,110 members
Home / Discussions / C#
   

C#

 
AnswerRe: including another program Pin
Stephen Hewitt23-Jan-07 16:23
Stephen Hewitt23-Jan-07 16:23 
GeneralRe: including another program Pin
aamironline23-Jan-07 18:49
aamironline23-Jan-07 18:49 
QuestionUpdate() method in TableAdapter Pin
hotnreddyfreddy23-Jan-07 15:33
hotnreddyfreddy23-Jan-07 15:33 
AnswerRe: Update() method in TableAdapter Pin
Christian Graus23-Jan-07 16:04
protectorChristian Graus23-Jan-07 16:04 
GeneralRe: Update() method in TableAdapter Pin
hotnreddyfreddy24-Jan-07 5:26
hotnreddyfreddy24-Jan-07 5:26 
QuestionXml.File Pin
missfath23-Jan-07 15:18
missfath23-Jan-07 15:18 
AnswerRe: Xml.File Pin
Christian Graus23-Jan-07 16:05
protectorChristian Graus23-Jan-07 16:05 
AnswerRe: Xml.File Pin
gauthee23-Jan-07 21:06
gauthee23-Jan-07 21:06 
Hi,

Firstly add item->xml file and write the required details
For example:
<articlelist>

<id>1
<heading>Heading 1
etc.....

<by>Author1
<dated>January 05, 2007


<id>2
<heading>Heading 2
etc..etc....

<by>Author2
<dated>January 05, 2007



Now, to read this data the code would be as follows:

XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("path of the XML file")
XmlNodeList articleList = doc.SelectNodes("which data/node you want to access");

[example you want to access heading tag:ArticleList/Article/Heading]

//to display the nodes

foreach(XmlNode node in articleList)
{
Response.Write(node.InnerText.ToString());
}


**This way we can read the data from the xml file, we are using xmldocument, xmlpath in the above mentioned code...

Gautham

GeneralRe: Xml.File Pin
missfath28-Jan-07 14:39
missfath28-Jan-07 14:39 
QuestionUsing Attributes to implement "callbacks" Pin
urbane.tiger23-Jan-07 13:56
urbane.tiger23-Jan-07 13:56 
AnswerRe: Using Attributes to implement "callbacks" Pin
Marc Clifton23-Jan-07 14:34
mvaMarc Clifton23-Jan-07 14:34 
GeneralRe: Using Attributes to implement "callbacks" Pin
urbane.tiger28-Jan-07 14:08
urbane.tiger28-Jan-07 14:08 
QuestionGood ideas for beginner programming?? Pin
TrooperIronMan23-Jan-07 13:35
TrooperIronMan23-Jan-07 13:35 
AnswerRe: Good ideas for beginner programming?? Pin
urbane.tiger23-Jan-07 14:04
urbane.tiger23-Jan-07 14:04 
AnswerRe: Good ideas for beginner programming?? Pin
Marc Clifton23-Jan-07 14:36
mvaMarc Clifton23-Jan-07 14:36 
GeneralRe: Good ideas for beginner programming?? Pin
TrooperIronMan24-Jan-07 1:38
TrooperIronMan24-Jan-07 1:38 
Questioncircular references in controls? Pin
amatbrewer23-Jan-07 11:31
amatbrewer23-Jan-07 11:31 
AnswerRe: circular references in controls? Pin
Stefan Troschuetz23-Jan-07 11:52
Stefan Troschuetz23-Jan-07 11:52 
GeneralRe: circular references in controls? Pin
Luc Pattyn23-Jan-07 14:00
sitebuilderLuc Pattyn23-Jan-07 14:00 
GeneralRe: circular references in controls? Pin
aSarafian23-Jan-07 23:05
aSarafian23-Jan-07 23:05 
AnswerRe: circular references in controls? Pin
jayart24-Jan-07 1:28
jayart24-Jan-07 1:28 
QuestionRight Solution in VS.Net? Pin
harjin23-Jan-07 11:31
harjin23-Jan-07 11:31 
AnswerRe: Right Solution in VS.Net? Pin
Christian Graus23-Jan-07 12:41
protectorChristian Graus23-Jan-07 12:41 
QuestionSystem.Timers.Timer Pin
gigo2k623-Jan-07 10:00
gigo2k623-Jan-07 10:00 
AnswerRe: System.Timers.Timer Pin
Christian Graus23-Jan-07 10:29
protectorChristian Graus23-Jan-07 10:29 

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.