# [NTG-context] ignoring an element in XML

Hans Hagen pragma at wxs.nl
Mon Jan 12 22:32:17 CET 2015

```On 1/12/2015 9:41 PM, Pablo Rodriguez wrote:
> Dear list,
>
> I have an XML document with <h1> different elements.
>
> I want to parse the vast majority of them, but not the ones that are
> wrapped in a <div class="hidden"> element.
>
> Which is the right way to do it? The following doesn’t work:
>
>      \xmlsetsetup{\xmldocument}{div[@class='hidden']/h1}{}

replace {} by {xml:whatever} i.e. a non-existing setup

-----------------------------------------------------------------