4
I have a xml thus:
<?xml version="1.0" encoding="UTF-8" ?>
<A x1="ab">
<B x1="abb">
<C x1="cc"> Marta </C>
<B/>
<B x1="be">
<C x1="be"> João </C>
</B>
</A>
And I used the expression XPATH :
//contains(@x1,"b")
I thought through function contains()
, would give me all the attributes x1
, with the letter b, however the result was:
Boolean='false'
Boolean='true'
Boolean='false'
Boolean='true'
Boolean='false'
Boolean='false'
Boolean='false'
Boolean='false'
Boolean='false'
Boolean='true'
Boolean='false'
Boolean='true'
Boolean='false'
Boolean='false'
Can anyone explain to me why?
Its first element B is finished wrong correct to
</B>
– Augusto Vasques