I am reading XmlDocument in dotnet/c#, by using System.Xml, i like to read xmlElement by More attributes to less attribute, how to read? can we do this?
my example xml file and coding:
<conditions><condition if:size="10pt" if:name="courier"/>
<condition if:size="10pt"/>
<condition if:size="10pt" if:name="times" ifnot:emphasis="bold"/></conditions>
foreach (XmlElement CondNode in XmlDoc.SelectNodes("//condition"))
{
//how to read and sort(not by length) by no. of attribute
}
i expect to read below order:
<condition if:size="10pt" if:name="times" ifnot:emphasis="bold"/>
<condition if:size="10pt" if:name="courier"/>
<condition if:size="10pt"/>
Thanks in advance,
Saran