In the following XML:
<?xml version="1.0" encoding="utf-8" ?>
<Plcy service="ILiabi lity" boId ="LifePolicy , 1">
<Prem service="IPremi um" boId ="RegularPremiu m, 1"></Prem>
<L1 service="ILifeM ain" type = "Life1">
<FirstName>Shei la</FirstName>
<Age>65</Age>
<Relation>spous e</Relation>
</L1>
<L2 service="ILife" type = "Life2">
<FirstName>Bruc e</FirstName>
<Age>70</Age>
</L2>
</Plcy>
I would like to select Nodes with boId attribute which are empty. I am
using an XPath expression:
"//*[@boId and not(text())]"
but MS VS XPathNavigator' s Select() returns both Plcy and Prem. It
also sets IsEmpty field of Prem node to false.
Whose fault is it - mine or MS?
Yours,
Valery the Newbie
<?xml version="1.0" encoding="utf-8" ?>
<Plcy service="ILiabi lity" boId ="LifePolicy , 1">
<Prem service="IPremi um" boId ="RegularPremiu m, 1"></Prem>
<L1 service="ILifeM ain" type = "Life1">
<FirstName>Shei la</FirstName>
<Age>65</Age>
<Relation>spous e</Relation>
</L1>
<L2 service="ILife" type = "Life2">
<FirstName>Bruc e</FirstName>
<Age>70</Age>
</L2>
</Plcy>
I would like to select Nodes with boId attribute which are empty. I am
using an XPath expression:
"//*[@boId and not(text())]"
but MS VS XPathNavigator' s Select() returns both Plcy and Prem. It
also sets IsEmpty field of Prem node to false.
Whose fault is it - mine or MS?
Yours,
Valery the Newbie
Comment