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 can we add xsi:nil="true" to an attribute using xmlstreamwriter in Apex

I am trying to make a callout to the third party service & for that, I am generating XML in Apex using XmlStreamWriter. I need to add nil attribute such as  <PG_Email xsi:nil="true" /> . How can we add this using XmlStreamWriter?