+ Start a Discussion

XML parsing , NULL Value Confusion!!!!

Hi ,

  My code :-

public static List<Element> employeesList = new List<Element>; employeesList.addAll(xmlDom.getElementsByTagName('fieldNames'));

 and in my XML values coming





<fieldNames>20</fieldNames>   etc...


So when ever field Names coming like  <fieldNames/> , then its not adding to List Object m creating...

If it can be assigned as null or '0' , then my problem can be solved..Can someone suggest something..