Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to create an xpath expression with non-Latin letters? #99

Closed
sgvx opened this issue Jun 24, 2024 · 1 comment
Closed

Comments

@sgvx
Copy link

sgvx commented Jun 24, 2024

ХPath expression with non-latin letters throws an error:

f := strings.NewReader(`<?xml version="1.0" encoding="utf-8"?>
	<data_list>
		<data>
			<Σειρά>1</Σειρά>
		</data>
		<data>
			<Σειρά>2</Σειρά>
		</data>
	</data_list>
`)
doc, err := xmlquery.Parse(f)
if err != nil {
	log.Fatal(err)
	return
}
expr, err := xpath.Compile(`Σειρά`)
if err != nil {
	log.Fatal("Compile error: ", err)
}
...
Compile error: Σειρά has an invalid token.
exit status 1

Is it possible to compile an xpath expression with non-latin letters?

@lsimeonov
Copy link

Submitted a PR #100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants