| | |
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 ado.net algorithm array barchart bitmap box broadcast buttons c# check checkbox client combobox control conversion csharp custom customactiondata database datagrid datagridview dataset datastructure date/time datetime datetimepicker degrees development dll draganddrop drawing encryption enum event excel file filename files form format forms function gdi+ gis gtk httpwebrequest image index input install java label list listbox mandelbrot math mouseclick mysql operator outlook2003 path photoshop picturebox pixelinversion pixelminversion post programming radians regex remote remoting richtextbox server sleep snooze socket sql statistics stream string table text textbox thread time timer tutorial update usercontrol validation visualstudio webbrowser webcam wia windows winforms wpf xml






