xml-data tagged requests and articles

Categorized request examples and articles tagged with [xml-data] keyword
How to post XML with the correct Content-Type header?
To post XML to the server{{ using LANG}}, you need to make an HTTP POST request, include the XML data in the body of the POST request message, and set the correct MIME type for the XML using the "Content-Type: application/xml" HTML header. Optionally, you can send an "Accept: application/xml" request header that will tell the server that the client is expecting XML in response. The server specifies the data type in the response using the "Content-Type: application/xml" HTTP response header. In this {{LANG}} Post XML Example, we send a request with XML data to the ReqBin echo URL and pass the Content-Type: application/xml HTML header. Click Send to execute the {{LANG}} POST XML example online and see the results.

How do I add comments to XML?
XML has built-in support for comments. Comments are added to XML data to describe what a given block of data is for. Comments are for humans only and are ignored by XML processors. XML comments may contain information, links, and data-related terms. Comments in XML start with "<!--" and end with "-->", and a text note should be added between these characters. Comment lines may appear anywhere in the XML code. In this XML comment example, we have included two comment elements in the XML data, which you can see below.