xpath.js icon indicating copy to clipboard operation
xpath.js copied to clipboard

Error: Unexpected character ;

Open andreafresa opened this issue 4 years ago • 0 comments

Hello guys, My xpath statement is this one (I added an xml namespace ,ns1): var Objects = select("//ns1:References/ns1:Reference[@ReferenceType="+typeofref+"]/text()="+id.toString(), ns); But the id that I am passing is this one: ns=2;i=16601

The error that i get is this one (I suppose it is because I am passing a string with a ; inside): throw new Error("Unexpected character " + c); Error: Unexpected character ;

Is it a bug? How can I solve the issue? Thanks

andreafresa avatar May 05 '20 13:05 andreafresa