yaronn / xpath.js

An xpath module for node, written in pure javascript
103 stars 100 forks source link

Error: Unexpected character ; #26

Open andreafresa opened 4 years ago

andreafresa commented 4 years ago

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