0
Answer

Help with xml path and selectNodes

eksypnos123

eksypnos123

20y
2.7k
1
Hi, I have a statement like this one: nodeList=root.SelectNodes("/Cds/Cd/Artist[@name='"+artist+"']/tracks"); where artist is a string variable. My problem is that if artist contains single quote ' (e.g. guns 'n roses) it fails at runtime. I tried replace a single quote with double quote '' at the artist string but i get the same problem. Any help is welcome. cheers, geo