XML TutorialLesson 20Free preview
XML Server
This lesson is part of XML · All levels
Summary
The server can present data in XML form via an HTTP response, for example when a page requests a list of products or the latest news. A server-side script like PHP, ASP, or Java servers forms XML from a data source and sends it with the appropriate MIME header. The client just receives, reads, and displays some of the pages.
Key points
- The server sends XML as part of the HTTP response
- Content-Type application/xml header tells the type of content
- The server script builds XML from a database or file
- The encoding must be adjusted so that the local text is not corrupted
- Dynamic XML allows content to be updated without reloading pages
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.