I am using the xpath with Selenium web driver Java to locate an element using id and it's id is like this:
name\params\etc
to represent this in java, I am using
String id = "\\name\\params\\etc"
driver.findElement(By.xpath("//"+"a"+"[@id='"+id+"']"));
please let me know how to resolve it.