11/8/10
Program for today
• Introduc on to XML • Parsing XML XML and Java XML Parsing • Wri ng XML
ICW 2010 Lecture 11
Marco Cova Internet Compu ng Workshop 2
Extensible Markup Language (XML) Extensible Markup Language (XML)
• We know how to store data on the server • How can we send todo – Rela on database, SQL, and JDBC items from users to • We know how to present data to users server? – HTML, CSS, and JavaScript Alice’s todos – Plain text? • We know how to send data over the network – HTML? – Sockets • It would be easy if we had – HTTP tags to describe the items • We’ll see how you can handle user requests and send back Bob’s todos Todo server we exchange (todos, in appropriate responses over HTTP this case) – Servlets and JSP (next on!) • XML allows to do that • What if data has to be processed by another so ware – Feeds: RSS, ATOM instead of being displayed to a human user? – RPC: SOAP Charlie’s todos
Marco Cova Internet Compu ng Workshop 3 Marco Cova Internet Compu ng Workshop 4
Example: RSS Well-formed, valid XML
• Well-formed document