how read unstructured xml in c#



I want to read XML which is unstructured. number of sub elemnet may be increase or decrease. what is the best way to read this type of XML in C#. Sample XML is bellow



<?xml version="1.0" encoding="UTF-8"?>
<entities>
<entity>
<type>Organization</type>
<relevance>0.918192</relevance>
<sentiment>
<type>neutral</type>
</sentiment>
<count>1</count>
<text>Wheelers Hill Secondary College Deb Ball</text>
</entity>
<entity>
<type>Organization</type>
<relevance>0.621802</relevance>
<sentiment>
<type>positive</type>
<score>0.789945</score>
</sentiment>
<count>1</count>
<text>Greensborough College</text>
<disambiguated>
<name>Greensborough College</name>
<subType>School</subType>
<website>http://ift.tt/1BpfH6o;
<dbpedia>http://ift.tt/1o1tdTQ
</dbpedia>
<freebase>http://ift.tt/1BpfH6s;
</disambiguated>
</entity>
</entities>

No comments:

Post a Comment