J
Jochen Mehlhorn
Hey,
I'm trying to use Xpath to "query" an XmlDocument, but I am not getting any
results.
My code looks like this:
using System.Xml;
using System.Xml.XPath;
XmlDocument xmlSourceDoc = new XmlDocument();
xmlSourceDoc.Load(path_to_xmlfile);
resultNodeList=xmlSourceDoc.SelectNodes( <<xpathStatement>> );
My XML looks something like this:
<Data>
<Entry att1="text" />
<Entry att1="text2" />
</Data>
Even simple xpath statements like "/Data/Entry", "//Entry" or "/Data" return
0 nodes.
I'm using a Windows Mobile 5.0, Compact Framework 2.0 emulator.
What am I doing wrong?
Thanks,
Jochen
I'm trying to use Xpath to "query" an XmlDocument, but I am not getting any
results.
My code looks like this:
using System.Xml;
using System.Xml.XPath;
XmlDocument xmlSourceDoc = new XmlDocument();
xmlSourceDoc.Load(path_to_xmlfile);
resultNodeList=xmlSourceDoc.SelectNodes( <<xpathStatement>> );
My XML looks something like this:
<Data>
<Entry att1="text" />
<Entry att1="text2" />
</Data>
Even simple xpath statements like "/Data/Entry", "//Entry" or "/Data" return
0 nodes.
I'm using a Windows Mobile 5.0, Compact Framework 2.0 emulator.
What am I doing wrong?
Thanks,
Jochen