![]() |
application/xmlThis is the recommended media type for XML data according to the IETF specifications [RFC 7303]. It signifies that the XML content might not be human-readable and could potentially contain processing instructions or other non-human-consumable elements. Syntax:Content-Type: application/xml
This example demonstrates a web service response header using application/xml: HTTP/1.1 200 OK
text/xmlThis indicates that the XML data is likely human-readable and consists primarily of textual content. Syntax:Content-Type: text/xml
This example shows a response header using text/xml: HTTP/1.1 200 OK
Difference Between text/xml and Application/xml
ConclusionThe output of a web service response with either content type will be XML data. However, the way it’s processed or displayed by consuming applications might differ based on the specified content type. |
Reffered: https://www.geeksforgeeks.org
Difference Between |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 22 |