I am using XmlDocument() for parsing a file like **.opf ** for my application of EpubReader.
<item id="W01MB154" href="01MB154.html" media-type="application/xhtml+xml" />
<item id="W000Title" href="000Title.html" media-type="application/xhtml+xml" />
with
<itemref idref="W000Title" />
<itemref idref="W01MB154" />
These values in same file.
Here I know the value of id within the tag of item, after that I want to know the value of the href element.
What I have to do is compare the value idref element in the itemref tag with element value of id in the tag item. Here I know the id value which is W01MB154.
Simply, I want to know the next value of id which is href element, Using XmlDocument().
XMlDocument()is totally varies in Store app. I checked your code as Console app it is looking good. It is my mistake with out mentioning as Store app. I am apologize for that, I am changing the question. Thanks.