The XML message body

Every XML message must have a body. The body comprises a top-level XML element that contains all the message data. The body contains complex XML markup, which translates to many syntax element types in the parsed tree. Each syntax element type is introduced here, with a series of example XML fragments.

The following common element types are discussed:

XML message body example: elements, attributes, and content provides an example of an XML message body and the tree structure that is created from it using the syntax elements types listed above.

More complex XML messages might use some of the following syntax element types:

Related concepts
XML wire format
Message flows overview
Related tasks
Manipulating messages in the XML domain
Adding an XML wire format
Related reference
XML declaration example
XML document type declaration