Click here to Skip to main content
15,912,932 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionWant to use xml as localdatabse Pin
manuo512-Sep-07 0:01
manuo512-Sep-07 0:01 
QuestionXML file format Pin
VK-Cadec11-Sep-07 2:21
VK-Cadec11-Sep-07 2:21 
AnswerRe: XML file format Pin
George L. Jackson11-Sep-07 14:17
George L. Jackson11-Sep-07 14:17 
GeneralChoice of Value Types in Field Pin
Brady Kelly11-Sep-07 1:38
Brady Kelly11-Sep-07 1:38 
Questionhow to use the distinct-nodes function? Pin
Rocky#11-Sep-07 0:30
Rocky#11-Sep-07 0:30 
Questiongeneralizing the tabular display of xml data Pin
Rocky#10-Sep-07 20:23
Rocky#10-Sep-07 20:23 
QuestionHow to XSL parse 300 mg XML file? Pin
mcsdgal7-Sep-07 8:21
mcsdgal7-Sep-07 8:21 
NewsReding xml node in windows Forms [modified] Pin
chakran6-Sep-07 1:10
chakran6-Sep-07 1:10 
Hi,
am working on VS.net 2.0 windows application using c#.
while am reading value of node in xml doc it is giving empty string.pls see the code below. can any one give me the solution where I had done mistake.

XmlTextReader reader = new XmlTextReader(@"C:\book.xml");
while (reader.Read())
{
reader.MoveToElement();
if (reader.Name == "year")
{
label1.Text = reader.Value.ToString();
}
}

book.xml file:
<code<?xml version="1.0" encoding="utf-8" ?="">
<bookstore>
<book category="COOKING">
<title lang="en"> Everyday Italian < /title>

<author>Giada De Laurentiis </author>

<year>2005 </year>
<price>30.00 </price>
</book>

</bookstore>




Thanks


-- modified at 7:22 Thursday 6th September, 2007
GeneralRe: Reding xml node in windows Forms Pin
Chetan Patel7-Sep-07 2:39
Chetan Patel7-Sep-07 2:39 
AnswerRe: Reding xml node in windows Forms Pin
israr Ali .NET7-Sep-07 2:39
israr Ali .NET7-Sep-07 2:39 
QuestionCalling a template recursively?? Pin
Rocky#5-Sep-07 0:23
Rocky#5-Sep-07 0:23 
AnswerRe: Calling a template recursively?? Pin
George L. Jackson5-Sep-07 2:15
George L. Jackson5-Sep-07 2:15 
GeneralRe: Calling a template recursively?? Pin
Rocky#5-Sep-07 2:57
Rocky#5-Sep-07 2:57 
GeneralRe: Calling a template recursively?? Pin
Rocky#5-Sep-07 3:05
Rocky#5-Sep-07 3:05 
GeneralRe: Calling a template recursively?? Pin
George L. Jackson5-Sep-07 5:56
George L. Jackson5-Sep-07 5:56 
GeneralRe: Calling a template recursively?? Pin
Rocky#5-Sep-07 18:53
Rocky#5-Sep-07 18:53 
GeneralRe: Calling a template recursively?? Pin
George L. Jackson6-Sep-07 1:50
George L. Jackson6-Sep-07 1:50 
GeneralRe: Calling a template recursively?? Pin
Rocky#5-Sep-07 19:50
Rocky#5-Sep-07 19:50 
GeneralRe: Calling a template recursively?? Pin
Rocky#6-Sep-07 1:30
Rocky#6-Sep-07 1:30 
GeneralRe: Calling a template recursively?? Pin
George L. Jackson6-Sep-07 1:54
George L. Jackson6-Sep-07 1:54 
GeneralRe: Calling a template recursively?? Pin
Rocky#6-Sep-07 2:17
Rocky#6-Sep-07 2:17 
GeneralRe: Calling a template recursively?? Pin
George L. Jackson6-Sep-07 2:25
George L. Jackson6-Sep-07 2:25 
GeneralRe: Calling a template recursively?? Pin
Rocky#6-Sep-07 2:33
Rocky#6-Sep-07 2:33 
GeneralRe: Calling a template recursively?? Pin
George L. Jackson6-Sep-07 2:41
George L. Jackson6-Sep-07 2:41 
GeneralRe: Calling a template recursively?? [modified] Pin
Rocky#6-Sep-07 20:33
Rocky#6-Sep-07 20:33 

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.