| | |
Parsing XML file using C#
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Mar 2008
Posts: 13
Reputation:
Solved Threads: 0
Hello ,
I am new to .net(C#) programing.
I need some help in my coding , from experts.
I have the following Xml file,
Ex :
<propertybag name="test" type="a" flags="0">
<property name="help" type="String" flags="0" />
<property name="path" type="String" flags="0">/abc</property>
<propertyname="url"type="String"flags="0">/abc1/Samlple.xml</property>
<property name="icon" type="String" flags="0" />
</propertybag>
Here i want to parse the Xml file till property name = "path" and wants to fetch the "abc" value from that element and same for bellow line.
Please help me out of this, i got stucked here....
i can tell that what method i used..
Expecting your precious reply !!!
Thanks in advance,
Anjali....
I am new to .net(C#) programing.
I need some help in my coding , from experts.
I have the following Xml file,
Ex :
<propertybag name="test" type="a" flags="0">
<property name="help" type="String" flags="0" />
<property name="path" type="String" flags="0">/abc</property>
<propertyname="url"type="String"flags="0">/abc1/Samlple.xml</property>
<property name="icon" type="String" flags="0" />
</propertybag>
Here i want to parse the Xml file till property name = "path" and wants to fetch the "abc" value from that element and same for bellow line.
Please help me out of this, i got stucked here....
i can tell that what method i used..
Expecting your precious reply !!!
Thanks in advance,
Anjali....
Read in System.XML.XMLReader and System.XML.XMLDocument classes
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
•
•
Join Date: Mar 2008
Posts: 13
Reputation:
Solved Threads: 0
•
•
•
•
Read in System.XML.XMLReader and System.XML.XMLDocument classes
iam able to read all the elements and values but i need to look for name = "path" and wants to fetch "/abc" value for that...
Please suggest me for this....
Thanks alot,
Anjali ....
![]() |
Similar Threads
- parsing conf file in c++ (C++)
- Parsing an xml file (Java)
- parsing xml (Python)
- xml file parsing in c++ (C++)
- Need some help with parsing an XML file (PHP)
- Parsing xml file (Python)
- parsing error (XML file-java-schema) (Java)
Other Threads in the C# Forum
- Previous Thread: strtok and C#
- Next Thread: COnverting date time in windows to unix timestamp
| Thread Tools | Search this Thread |
.net access algorithm array asp.net barchart bitmap box broadcast buttons c# check checkbox client combobox control conversion csharp custom database databaseconnection datagrid datagridview dataset datetime dbconnection degrees design development draganddrop drawing encryption enum event eventhandlers excel file firefox form format forms function gdi+ grantorrevokepermissionthroughc#.net httpwebrequest image index input install java label libraries list listbox loop mandelbrot math mouseclick movingimage mysql mysql.data.client operator path photoshop picturebox pixelinversion platform post programming radians regex remote remoting resourcefile richtextbox server sleep socket sql statistics stream string system.servicemodel table tcpclientchannel text textbox thread time timer update usercontrol validation visualstudio webbrowser windows winforms wpf wpfc# xml






