function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PossiblePossible 

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

<fieldsNames/>

<fieldNames>10</fieldNames>

<fieldNames>20</fieldNames> 

<fieldNames/> 

<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..

 

Thanks.