assistunion/xml-stream — Issue #8: need negation
Author: dgreisen
Created: 2011-11-16 13:58:14+00:00
State: open

Need a negation symbol for selecting tags. Something like `endElement: SECTION !CHAPTER HD` which would fire an event for any `` that are in a `

` but not in a `CHAPTER`. I do not believe css has a standard negation selector. Probably because you can accomplish negation through cascading.

Use case:
Say I have XML like the following:

<... several unknown and variable levels deep>
Section Title

Chapter Title

I wish to create a listener to capture only `Section Title`. I do not know the exact path between `

` and ``. If I use the selector `SECTION HD` I will also get the `Chapter Title`, which is undesirable.