Question on expected behavior of comparion with boolean values
Hi! I tried the following XPath query on this XML document:
XML document:
<I1 id="1" t2="false">1</I1>
XPath Query:
//*[@t2 = false()]
and LibXML2 returns no result. I would like to ask if this is intended(Since the behavior is correct if = false() is explained as attribute does not exist). If that is the case I would like to ask if I want to select all nodes with actual false value for attribute t2, what is the correct expression? Thanks!
Version of libxml2 I used is the version 2.10.3.
Edited by Shuxin Li