Hello,
I actually have two questions:
I have a xml like this:
<tab>
<category name="Software" > Test purpose
<subcategory name="Software">
<method url="addSoftware.aspx">Add</method>
<method url="editSoftware.aspx">Edit</method>
<method url="searchSoftware.aspx">Search</method>
</subcategory>
</category>
</tab>
1. How can I select the the category noe whose child (subcategory)'s name is
"Software"?
I tried Xpath expression "/tabs/category/subcategory[@name='Software']", but
it gives me the child node. Can someone tell me how to get the parent node
directly?
2. When I create XpthNodeIterator nav and use nav.Value to get the text of
node "Category", I actually gets the concatenated values of the node and all
its child nodes (e.g., in above example, I got Test purposeAddeditsearch).
Which method should I call to get just the text of one node (e.g. just get
"Test purpose" not "Test purposeAddeditsearch")?
Many Thanks
--
hello, please help