Hi,
Can anyone teach me how to check the XML result is empty?
I have
- productRec.open = (r.executeXPath("/record/price/text()")).toDecimal());
Normal the xml will show
<price>12.01
</price>
However, when there is no value sometimes, the xml show
<price/>
I have try
- priceChk = r.executeXPath("/quote/price/text()");
- if ((priceChk ="")||(priceChk.length()=0)||(priceChk=null))
- {
- productRec.open = 0.0;
- }
But still can't solve the problem.
Thank you so much.
Kevin.