Reading and Writing XML Using Streams
Apex provides classes for reading and writing XML content using streams.
The XMLStreamReader class enables you to read XML content and the XMLStreamWriter class enables you to write XML content.
-
The XMLStreamReader class methods enable forward, read-only access to XML data.
-
The XmlStreamWriter class methods enable the writing of XML data.