| | |
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 |
Tag cloud for C#
.net access algorithm array barchart bitmap box buttons c# chat check checkbox class client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees draganddrop drawing encryption enum event excel file files form format forms ftp function gdi+ httpwebrequest image index input install java label list listbox listener login mandelbrot math mouseclick mysql networking object operator oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






