Skip to content

selector for entity by property #35

@DracoBlue

Description

@DracoBlue

If we have the input:

<document>
  <body>
     <header name="hans">
        <mau you="me">mom</mau>
        <pau>la</pau>
    </header>
     <footer name="hans">
        emil
    </footer>
</document>

it would be great if one could do:

"document.body.header[mau=mom].pau"

to fetch "la"

or

"document.body.header[mau.@you=me].pau"

to fetch "la"

or

"document.body.header[mau=mom][]"

to fetch [{"mau" => "mom", "pau" => "la"}].

or

"document.body.footer[@name=hans]"

to fetch "emil".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions