Input file is :


<Import>
<Name>abc</Name>
<Address>pqr</Address>
<Phone></Phone>
</Import>


I want Output in below format using XML Input Stream (StAX) step:

Actual Output:

xml_data_name xml_data_value
START_ELEMENT <null>
START_ELEMENT <null>
CHARACTERS abc
END_ELEMENT <null>
START_ELEMENT <null>
CHARACTERS pqr
END_ELEMENT <null>
START_ELEMENT <null>
END_ELEMENT <null>
END_ELEMENT <null>


Expected Output:


xml_data_name xml_data_value
START_ELEMENT <null>
START_ELEMENT <null>
CHARACTERS abc
END_ELEMENT <null>
START_ELEMENT <null>
CHARACTERS pqr
END_ELEMENT <null>
START_ELEMENT <null>
CHARACTERS <null> or Blank
END_ELEMENT <null>
END_ELEMENT <null>


Here Important point is to get the CHARACTERS as null for <Phone> xml tag because its value is not present in xml input file.


Is there any utility in the step which we have to use or you can also suggest some other way to do so.


Preferred with Example.

Thanks in advance.
g_nish