c# - XML parsing in windows 8 -
my xml data this, getting local folder
<first> <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml" /> <item id="xxxx" href="one.html" media-type="application/xhtml+xml" /> <item id="yyyy" href="two.html" media-type="application/xhtml+xml" /> </first> <second> <itemref idref="xxxx" /> <itemref idref="yyyy" /> </second> i comparing first & second named main tags of values id & idref respectively. have values of id attribute "xxxx","yyyy". now want know next values of "id" attribite.
ids1 = attrilist[j].nodevalue.tostring(); list1.add(ids1); if (attrilist1[l].nodename == "id") { ids2 = attrilist1[0].nodevalue.tostring(); list2.add(ids2); } var value = list1.intersect(list2); simply question i know value of "id" next attribute value i.e; "href" sorry poor explanation.
Comments
Post a Comment