posted 20 years ago
Hi im using this code to take out data from the tag <CUSTOMER_NAME>
but say if there ia no data im getting it as <CUSTOMER_NAME></CUSTOMER_NAME>
and im getting null pointer exception.
Pleeeease help....
im doing a null check but in vain :-(
if ((QUOTE_DATA_Information.getElementsByTagName("CUSTOMER_NAME").getLength())!=0)
CustName = checkNull(QUOTE_DATA_Information.getElementsByTagName("CUSTOMER_NAME").item(0).getFirstChild().getNodeValue());
Regards
Mou