Skip to content

Boolean XPath results are not handled properly #188

@Yv-vY

Description

@Yv-vY

Problem Statement

xq doesn't handle XPath boolean results properly, typically used to test a node existence.

Steps to Reproduce

echo -n '<?xml version="1.0"?><root></root>' | xq -x 'boolean(//root)'

Actual Result

Error: unknown type error: true

Expected Result

true

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions