diff --git a/snakesist/exist_client.py b/snakesist/exist_client.py index 8870546..942f7e3 100644 --- a/snakesist/exist_client.py +++ b/snakesist/exist_client.py @@ -71,9 +71,9 @@ class ConnectionProps(NamedTuple): """\ for $node in @expression return {$node} """.replace( "SNAKESIST_NAMESPACE", SNAKESIST_NAMESPACE @@ -469,9 +469,9 @@ def xpath(self, expression: str) -> list[NodeResource]: content_node = result_node[0] assert isinstance(content_node, NodeBase) query_result = QueryResultItem( - absolute_id=str(result_node["absid"]), - node_id=str(result_node["nodeid"]), - document_path=str(result_node["path"]), + absolute_id=result_node["absid"].value, + node_id=result_node["nodeid"].value, + document_path=result_node["path"].value, node=content_node.detach(), ) resources.append(NodeResource(exist_client=self, query_result=query_result))