I need to parse content.xml file in XMind package.
File looks like this
<xmap-content xmlns="urn:xmind:xmap:xmlns:content:2.0" xmlns:fo="http://www.w3.org/1999/XSL /Format" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0">
<sheet id="sdfasdfsdf">
<title> Sheet1 </title>
</sheet>
<sheet id="fgasdfgasr">
<title> Sheet2 </title>
</sheet>
<xmap-content>
I need to get list of title of all sheets.
I am using XPathExpression expr = navigator.Compile("//sheet");
but i guess its not working
what to do. any suggestion or code will do.
thnx in advance.
Your XML has defined default namespace:
urn:xmind:xmap:xmlns:content:2.0. So you need to pass it to your XML engine with prefix, then use expression:or another way: