XML and the Infoset
XML is used to structure the content of messages sent to and from a Web service. This content can be carried in message header blocks or in the functional payload of the message body. In our example procurement system, XML is used for the wire representation of the PurchaseOrder (and all other messages) transmitted from the School of Fine Art to Microsoft Press. A simple PurchaseOrder for 120 copies of the book titled A History of Modern Art is shown as an XML fragment below.Note
![]() | Each of the message fragments and XML examples in this part of the book include line numbers. These line numbers are for reference and ease of explanation only and are not part of the wire format of the messages when transmitted. Lines of the message fragments that are described in more detail are shown in boldface. |
The XML Information Set for this document contains the following information items:Appendix B, "XML Infoset Information Items.")Appendix D, "Sample Namespace Reference."
XML and the Infoset
(01) <!-- Order 120 copies of History of Modern Art -->
(02) <po:PurchaseOrder
(03) xmlns:po="http://ex.mspress.microsoft.com/po">
(04) <po:Book>
(05) <po:Title po:ISBN="0-1318-4105-X">A History of Modern Art</po:Title>
(06) <po:Price po:Currency="USD">62.19</po:Price>
(07) <po:Quantity>120</po:Quantity>
(08) </po:Book>
(09) </po:PurchaseOrder>