I have an XML document which looks something like this:
MENSWEAR
You just need to have the and
ed list of conditions inside the [ ]
selector for record
:
/meadinkent/record[compdiv[.='MENSWEAR'] and sty_ret_type[.='ACCESSORIES']]
Reads as: under a top level meadinkent
node, a record
node, having a child compdiv
(with value MENSWEAR
) and a child sty_ret_rype
(with value ACCESSORIES
).