G
giddy
hi,
!!Please help! I've been at this for a few hours now! I'm probably doing
something silly.
heres my xml document:
<Log>
<entry user="Gideon" date="11/6/2008" time="10:14 AM" action="Searched" />
<entry user="Jennie" date="11/6/2008" time="10:14 AM" action="Finished her
papers" />
<entry user="Gideon" date="11/7/2008" time="10:14 AM" action="tested" />
<entry user="Apphia" date="11/7/2008" time="10:14 AM" action="signed out" />
</Log>
And none of these queries with functions return anything!!
XmlNodeList lst = xel.SelectNodes("//entry[contains(.,'Searched')]");
XmlNodeList lst = xel.SelectNodes("//entry[contains(action,'Searched')]");
XmlNodeList lst = xel.SelectNodes("//entry[contains(user,'Gid')]");
What am i doing wrong!?
The whole code looks like:
XmlDocument xel = new XmlDocument();
xel.Load(filename);
XmlNodeList lst = xel.SelectNodes("//entry[contains(user,'Gid')]");
Thanks so much
Gideon
!!Please help! I've been at this for a few hours now! I'm probably doing
something silly.
heres my xml document:
<Log>
<entry user="Gideon" date="11/6/2008" time="10:14 AM" action="Searched" />
<entry user="Jennie" date="11/6/2008" time="10:14 AM" action="Finished her
papers" />
<entry user="Gideon" date="11/7/2008" time="10:14 AM" action="tested" />
<entry user="Apphia" date="11/7/2008" time="10:14 AM" action="signed out" />
</Log>
And none of these queries with functions return anything!!
XmlNodeList lst = xel.SelectNodes("//entry[contains(.,'Searched')]");
XmlNodeList lst = xel.SelectNodes("//entry[contains(action,'Searched')]");
XmlNodeList lst = xel.SelectNodes("//entry[contains(user,'Gid')]");
What am i doing wrong!?
The whole code looks like:
XmlDocument xel = new XmlDocument();
xel.Load(filename);
XmlNodeList lst = xel.SelectNodes("//entry[contains(user,'Gid')]");
Thanks so much
Gideon