c# - Non exact match in XML -


i've got problem. have equal value xml string, typed in textbox. have make program more "inteligent" means, if type "kraków" instead of "kraków", program should find location anyway.

sample of code:

public static ienumerable<xelement> getrowswithcolumn(ienumerable<xelement> rows, string name, string value) {     return rows         .where(row => row.elements("col")             .any(col =>                 col.attributes("name").any(attr => attr.value.equals(name))                 && col.value.equals(value))); } 

if type "kraków" response xml, when type "kraków" there's no match. should do?

and if can ask 1 more question, how can prompts such google have? if type "progr" google shows "programming" example.

you compare values while use

.toupper() 

for strings.

to these prompts google have, need regular expression. more see here:

learning regular expressions


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -