943,958 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 8452
  • C# RSS
Mar 27th, 2008
0

Parsing XML file using C#

Expand Post »
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....
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kanjali is offline Offline
13 posts
since Mar 2008
Mar 27th, 2008
0

Re: Parsing XML file using C#

Read in System.XML.XMLReader and System.XML.XMLDocument classes
Featured Poster
Reputation Points: 480
Solved Threads: 276
Postaholic
Ramy Mahrous is offline Offline
2,189 posts
since Aug 2006
Mar 28th, 2008
0

Re: Parsing XML file using C#

Read in System.XML.XMLReader and System.XML.XMLDocument classes
Ya , i have used those classes, but iam unable to fetch the perticular value by checking some conditions.......

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 ....
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kanjali is offline Offline
13 posts
since Mar 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: strtok and C#
Next Thread in C# Forum Timeline: C# Installer Creater





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC