Help with xml path and selectNodes
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