Click here to Skip to main content
16,004,887 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDomain Registration Pin
Suryanairg3-Mar-09 23:53
Suryanairg3-Mar-09 23:53 
JokeRe: Domain Registration Pin
Greg Chelstowski3-Mar-09 23:58
Greg Chelstowski3-Mar-09 23:58 
GeneralRe: Domain Registration Pin
Xmen Real 4-Mar-09 4:57
professional Xmen Real 4-Mar-09 4:57 
AnswerRe: Domain Registration Pin
Aman Bhullar4-Mar-09 0:43
Aman Bhullar4-Mar-09 0:43 
AnswerRe: Domain Registration Pin
dan!sh 4-Mar-09 1:33
professional dan!sh 4-Mar-09 1:33 
QuestionReading XElement from XML file Pin
indian1433-Mar-09 23:40
indian1433-Mar-09 23:40 
AnswerRe: Reading XElement from XML file Pin
Calin Tatar3-Mar-09 23:55
Calin Tatar3-Mar-09 23:55 
AnswerRe: Reading XElement from XML file [modified] Pin
Abhishek Sur3-Mar-09 23:56
professionalAbhishek Sur3-Mar-09 23:56 
suppose you have an xml file like this

<!--Bookstore XML Example-->
<bookstore>
<genre name="Fiction">
<book isbn="10-861003-324" title="A Tale of Two Cities" price="19.99">
<chapter num="1" name="Introduction">Abstract...</chapter>
<chapter num="2" name="Body">Abstract...</chapter>
</book>
</genre>
</bookstore>

Use XElement.Load(@"yourfilepath");

After you read, you will get the element structure like this:


<bookstore>
<genre name="Fiction">
<book isbn="10-861003-324" title="A Tale of Two Cities" price="19.99">
<chapter num="1" name="Introduction">Abstract...</chapter>
<chapter num="2" name="Body">Abstract...</chapter>
</book>
</genre>
</bookstore>
You can also make use of
XDocument xdoc = XDocument.Load("your path");
if you need comments and declarations ...

Abhishek Sur

My Latest Articles
Basics on LINQ and Lambda Expressions
Create .NET Templates

<div class="ForumMod">modified on Wednesday, March 4, 2009 6:30 AM</div>
Questionconnectivity in asp Pin
aratireddy3-Mar-09 23:14
aratireddy3-Mar-09 23:14 
AnswerRe: connectivity in asp Pin
rakeshs3123-Mar-09 23:22
rakeshs3123-Mar-09 23:22 
AnswerRe: connectivity in asp Pin
Karthick_gc3-Mar-09 23:42
Karthick_gc3-Mar-09 23:42 
AnswerRe: connectivity in asp [modified] Pin
Greg Chelstowski3-Mar-09 23:52
Greg Chelstowski3-Mar-09 23:52 
AnswerRe: connectivity in asp Pin
Abhijit Jana4-Mar-09 0:08
professionalAbhijit Jana4-Mar-09 0:08 
QuestionGridview? Pin
Karthick_gc3-Mar-09 23:03
Karthick_gc3-Mar-09 23:03 
AnswerRe: Gridview? Pin
rakeshs3123-Mar-09 23:16
rakeshs3123-Mar-09 23:16 
GeneralRe: Gridview? Pin
Karthick_gc3-Mar-09 23:31
Karthick_gc3-Mar-09 23:31 
GeneralRe: Gridview? Pin
keyur satyadev3-Mar-09 23:47
keyur satyadev3-Mar-09 23:47 
GeneralRe: Gridview? Pin
Karthick_gc3-Mar-09 23:56
Karthick_gc3-Mar-09 23:56 
GeneralRe: Gridview? Pin
keyur satyadev4-Mar-09 0:16
keyur satyadev4-Mar-09 0:16 
GeneralRe: Gridview? Pin
Karthick_gc4-Mar-09 0:40
Karthick_gc4-Mar-09 0:40 
GeneralRe: Gridview? Pin
keyur satyadev4-Mar-09 1:18
keyur satyadev4-Mar-09 1:18 
GeneralRe: Gridview? Pin
Karthick_gc4-Mar-09 1:25
Karthick_gc4-Mar-09 1:25 
GeneralRe: Gridview? Pin
anujbanka17844-Mar-09 1:37
anujbanka17844-Mar-09 1:37 
GeneralRe: Gridview? Pin
keyur satyadev4-Mar-09 1:47
keyur satyadev4-Mar-09 1:47 
QuestionTextbox value must be numeric and non zero Pin
Reddy19833-Mar-09 22:51
Reddy19833-Mar-09 22:51 

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.