Skip to content

Searching for negatives #7

@puppetsquid

Description

@puppetsquid

I don't know if you're still updating this, but the Advanced XML could benefit from being able to search for tags based on attributes or children they do not have.

Personally I would most appreciate a findWithoutChildLike tag.
e.g. <mod:findWithoutChildLike type="abc" child-type="xyz"> (searches for 'abc' tags that do not contain an 'xyz' child)

Alternatively, adding NOT/NOR/NAND to findComposites' tag may be more useful, if not as elegant.
e.g.

<mod:findComposite>
    <mod:par op="AND">
          <mod:findLike type="abc">
          <mod:par op="NOT">
               <mod:findWithChildLike type="abc" child-type="xyz">
          </mod:par>
      </mod:par>
</mod:findComposite>

(searches for 'abc' tags and searches for tags which are not 'abc' with the child 'xyz' - outputs only 'abc' tags without the child 'xyz')

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