thanks Dormilich, my problem is now solved.
Im using .Net ver 3.0, included in Visual Studio 2008
by the way, how can I populate the file in a dropdownlist ? I create a xmldatasource, bind it to the dropdownlist, the list did show correct lines accord to the nodes in xml file, but it didnt show the value ("hdd" or "HardDiskTy pe") but "System.bla h blah blah instead
User Profile
Collapse
-
thanks, for example: i want to create a xpath that return the tag name, uh, like return "hdd" when input HardDiskType or HDD; if possible, return "equal" also
<equal>
<hdd>HardDiskTy pe></hdd>
<hdd>HDD</hdd>
</equal>Leave a comment:
-
well, part of my problem is dealing with xpath (which I'm pretty clueless, since I only know some basic XML), so please help me create a proper xpath :DLeave a comment:
-
return a name of a node in C#
hello, I have an xml file and I want to check if the string input in a textbox exist in a node but I dont know what to do.
- For example:
<equal>
<hdd>HardDiskTy pe></hdd>
<hdd>HDD</hdd>
</equal>
a) When I input HDD or HardDiskType in the textbox, the string will match and return true
b) When I input a different string, like "123",...
No activity results to display
Show More
Leave a comment: