- Home /
Question by
eliascanaza · Mar 25, 2014 at 05:59 AM ·
xmlsearchregularexpressions
Search value in XML
Hi I need your help... I need search value in XML file and get the ID componente
<title id="1">Huancane entre los lugares para visitar</title>
<title id="2">Este lugar es el mejor restaurante</title>
<title id="3">licores y vinos de Ica los encuentras en este lugar</title>
<title id="4">La mejor comida en verano mediante pescado es el ceviche de pescado</title>
<title id="5">Restaurantes de toda la region reunidos en un unico evento</title>
.
.
.
regular expression examples .. i need help that, i dont know
thanks for that,
Comment
Best Answer
Answer by eliascanaza · Apr 04, 2014 at 09:11 AM
thanks...
this is the solution ... :)
foreach(XmlNode desc in _xmlDocument.SelectNodes("document/en/search/item"))
{
Regex rgx = new Regex(PatronBusqueda, RegexOptions.IgnoreCase);
MatchCollection Coincidencias = rgx.Matches(desc.InnerText);
if (Coincidencias.Count > 0)
{
print (desc.InnerText);
}
}
Your answer
Follow this Question
Related Questions
Search function through multiple XML files 0 Answers
how do I search for an atribute in a XML file? 0 Answers
Searching XML document 2 Answers
A node in a childnode? 1 Answer