Hi,
wouldn't it be better to split XmlFile's static code from what should
really be a XmlCondition? For the sake of code readability and
debugging. From user's PoV it would be the same - he would still see
.when(XmlFile.matchesXpath("//catalog/chain | //catalog/chains"))
Regards,
Ondra