How to pass it ?

C

C# newbie

I have this xml file:

<AAA>
<BCC>
<BBB/>
<data>'TEST'</data>
<BBB/>
<BackGroundColor>'#74f99'</BackGroundColor>
<BBB/>
</BCC>
<DDB>
<BBB/>
<BBB/>
</DDB>
<BEC>
<CCC/>
<OtherInfo>'tEsT'</OtherInfo>
<Also>'tESt'</Also>
<DBD/>
</BEC>
</AAA>

when I run this method:

foreach (XmlNode xnode in node.SelectNodes(txtPattern.Text,nsmgr)) // I
pass this XPath query to SelectNode //*[contains(.,"TEST")]
{

ListViewItem lvi = new ListViewItem(xnode.Name);
lvi.Tag = new TreeAndXmlNode(FindTreeNode(XmlTree.Nodes[0], xnode), xnode);
txtLeaf.Text = xnode.InnerText;
lvResult.Items.Add(lvi);

}



it works fine and finds the "TEST" but it can't find the rest shapes of test
like "tESt" or "tEsT"!
any idea? how should I pass "TEST" to the query or function to make it
find the rest of "test"s too?
thanks in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

C# and XML 1
question about xml 1

Top