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
Aakriti GoyalAakriti Goyal 

How to set xsi:nil="true" in XML using XmlStreamWriter in apex

Hi All,

I am trying to set nil value in XML using XmlStreamWriter in apex.  Following https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_xml_XmlStream_writer.htm

I am struggling with setting a null value. Can anyone provide me some trick to use null in XML.