Skip to content

Query model #4

@KaruroChori

Description

@KaruroChori

Queries should operate as containers, from which matching results should be provided as iterators for nodes or attributes.
Something like:

for(auto& element: document.root() / "base" / "resources" / "*" / "item"["attribute-a"]){
    //.... using element as `attribute`
}

Or in the string format I also use in vs.templ, like /base/resources/*/~attribute-a possibly constructed into a query via a constexpress builder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions