Tutorials
Resources
Forum
Communities
Interview
Jobs
Projects
Offshore Development
Silverlight Tutorials
|
Mentor
|
Code Converter
|
Articles
|
Code Factory
|
Computer Jokes
|
Members
|
Peer Appraisal
|
IT Companies
|
Bookmarks
|
Revenue Sharing
|
Prizes & Awards
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
UmaShankar
(498)
mahendrakiran
(180)
Venkat Tammine...
(154)
Last 7 Days
UmaShankar
(991)
ANIL PANDEY
(903)
gururajan
(497)
more...
New Feature:
Community Sites
:
Create your own .NET community website and start earning from Google AdSense !
It's Free !
How to Use XML in C#....
Posted Date:
29 Nov 2007
Total Responses:
1
Posted By:
'A'
Member Level:
Gold
Points
: 2
I'm Using ASP.Net with C#...
I want to know How to Use XML File in C#... ie I Opened Xml Document (XMLFile.xml) in which i'm having the following code ::
<Dept>
<Main_Dept Value='1'>
<Sub_Dept Value='2'>
<Employee ID="1" Name="Aaa" />
<Employee ID="2" Name="Bbb" />
<Employee ID="3" Name="Ccc" />
<Employee ID="4" Name="Ddd" />
<Employee ID="5" Name="Eee" />
<Employee ID="6" Name="Fff" />
<Employee ID="7" Name="Ggg" />
- - -
- - -
<Sub_Dept>
</Main_Dept>
<Main_Dept Value='3'>
<Sub_Dept Value='4'>
<Employee ID="1" Name="fghkhad" />
<Employee ID="2" Name="dfijmlikdf" />
<Employee ID="3" Name="wwrwede" />
<Employee ID="4" Name="sds" />
<Employee ID="5" Name="gfhb" />
<Employee ID="6" Name="mgflgk" />
<Employee ID="7" Name="165" />
- - -
- - -
<Sub_Dept>
</Main_Dept>
<Main_Dept Value='5'>
<Sub_Dept Value='6'>
<Employee ID="1" Name="1dfs" />
<Employee ID="2" Name="df5df" />
<Employee ID="3" Name="gjosmf" />
<Employee ID="4" Name="dfosjk" />
<Employee ID="5" Name="123d4fs" />
<Employee ID="6" Name="dfsf89" />
<Employee ID="7" Name="dfs879416" />
- - -
- - -
<Sub_Dept>
</Main_Dept>
</Dept>
Now I want the Output in such a way that ...
If I give the Input ID="1" then
Output = Corresponding Names (ie with All Main_Dept && Sub_Dept VALUES & Values of Particular ID in ALL SUB_DEPT's)..
Similarly Input ID="2" then
Output = Corresponding Name (ie with All Main_Dept && Sub_Dept VALUES & Values of Particular ID in ALL SUB_DEPT's)..
similarly Input ID="3"......
Output =---------------------
How can I do this.... (I DON'T WANT TO USE ANY DATASET...)
Pls give me the Code...
Thank U....
Responses
Author:
Pradeep Kintali
29 Nov 2007
Member Level:
Gold
Rating:
Points
: 2
u can use XML and XLST
http://www.aspfree.com/c/a/XML/Applying-XSLT-to-XML-Using-ASP.NET/1/
Post Reply
You must
Sign In
to post a response.
Next :
javascript
Previous :
get reference to serverside object from global.asax
Return to Discussion Forum
Post New Message
Category:
ASP.NET
Related Messages
Validation Controls
no of click on advertisement in asp.net application
Please Please help.................. tooo urgent
Please tell me .Net interview Questions for 2+ Years Exp
To upload Documents like(doc,pdf,etc) to file system
dotNet Slackers
BizTalk Adaptors
Web Design
doors in nj
Contact Us
Privacy Policy
Terms Of Use