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
GaryM_83GaryM_83 

XMLStreamWriter - writeendelement

Hi all...my question will probably indicate such; however I am new to Apex.  I am using the XMLStreamWriter class but am having difficulty getting the xml to form properly.

 

I think my issue is that I cannot apply arguments to writeEndElement.

 

 <control>
       <controlid>ControlIdHere</controlid>
       <uniqueid>false</uniqueid>
       <dtdversion>xyz</dtdversion>
 </control>

 

Above is the xml that i need to build but I cant get the tags to close properly in order.

 

Any help would be greatly appreciated.