0

I use libxml2 in C application to parse XML files.

I get an error when I search for XPath with special character '$'.

Here my code :

xmlXPathExpression("//mytag/foo$");

And I get error "Invalid expression".

I tried to encode speical characters like this :

xmlXPathExpression("//mytag/foo$");

But I get same error.

Any help ? Thanks.

TheFrancisOne
  • 2,667
  • 9
  • 38
  • 58

1 Answers1

2

I do not see $ listed as a valid character in element name: XML 1.0.

choroba
  • 231,213
  • 25
  • 204
  • 289