Click here to Skip to main content
15,913,055 members
Home / Discussions / XML / XSL
   

XML / XSL

 
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 
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 
XmlTextReader reader = null;
try
{
//Load the reader with the XML file.
reader = new XmlTextReader("c:\\book.xml");

//Parse the XML and display the text content of each of the elements.
while (reader.Read()){
if (reader.IsStartElement()){
if (reader.IsEmptyElement)
Console.WriteLine("<{0}/>", reader.Name);
else{
Console.Write("<{0}> ", reader.Name);
reader.Read(); //Read the start tag.
if (reader.IsStartElement()) //Handle nested elements.
Console.Write("\r\n<{0}>", reader.Name);
Console.WriteLine(reader.ReadString()); //Read the text content of the element.
}
}
}

}

finally
{
if (reader != null)
reader.Close();
}
try this code and remove space in your xml title closing tag in between < and / and put label1.text or what you like instead of Console.WriteLine .

<bookstore>
<book category="COOKING">
<title lang="en"> Everyday Italian !!< /title>!!

<author>Giada De Laurentiis </author>

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

</bookstore>




Israr Ali
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 
GeneralFound where the bug is now Pin
Rocky#6-Sep-07 21:20
Rocky#6-Sep-07 21:20 
GeneralRe: Calling a template recursively?? Pin
Rocky#7-Sep-07 0:09
Rocky#7-Sep-07 0:09 

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.