Catálogo de publicaciones - libros

Compartir en
redes sociales


Beginning XML with DOM and Ajax: From Novice to Professional

Sas Jacobs

Resumen/Descripción – provisto por la editorial

No disponible.

Palabras clave – provistas por la editorial

Software Engineering/Programming and Operating Systems

Disponibilidad
Institución detectada Año de publicación Navegá Descargá Solicitá
No detectada 2006 SpringerLink

Información

Tipo de recurso:

libros

ISBN impreso

978-1-59059-676-0

ISBN electrónico

978-1-4302-0177-9

Editor responsable

Springer Nature

País de edición

Reino Unido

Fecha de publicación

Información sobre derechos de publicación

© Apress 2006

Tabla de contenidos

Introduction to Server-Side XML

Sas Jacobs

In this chapter, I showed you how to use server-side processing to work with XML documents. I examined the advantages of working on the server compared with client-side processing. You saw that you can apply transformations on the server and send only the transformed content to the client. This approach reduces the amount of content sent to the client and avoids the need to code for different browser types and versions.

The chapter gave a brief overview of using .NET 2.0 and PHP 5 to work with XML content. I worked through some simple examples showing how to perform common XML-related tasks. I looked briefly at

Even though I only covered .NET and PHP, many of the DOM manipulation methods are similar to those used client-side. The techniques demonstrated within this chapter could apply equally to other server-side languages. In the next two chapters, I’ll look at each of the two approaches in more detail.

Pp. 317-348

Case Study: Using .NET for an XML Application

Sas Jacobs

In this chapter, I walked through a .NET 2.0 XML application. The application created and displayed a news feed from an Access database. It also included methods for editing, deleting, and adding news items.

The application generated an RSS 2.0 feed using an XmlTextWriter. It made this feed available to external sources by providing a link to an .aspx page. The application also generated XHTML from the RSS feed using an XSLT stylesheet. The stylesheet included conditional logic to determine which elements to display.

Users can consume external RSS 2.0 feeds within the application. Because the application generates a valid RSS 2.0 feed, it can use the same XSLT stylesheet to display the external news items.

In the next chapter, I’ll look at a PHP case study. Rather than replicate this example, you’ll see a community weather portal application that uses a MySQL database, DomDocument objects, and XSLT stylesheet transformations.

Pp. 349-380

Case Study: Using PHP for an XML Application

Sas Jacobs

In this chapter, I worked through an application that uses PHP, MySQL, XML, and XSLT to display and manage weather content. The application stores all of the data within a MySQL database. The application retrieves the relevant database records with PHP 5. It uses the new PHP 5 DomDocument object to generate the XML document. The structure of the generated XML documents is flexible enough to cope with several different scenarios.

In order to display the XML content within the application, I used XSLT stylesheet transformations to generate XHTML. You saw how to use XSLT variables and include conditional logic in the stylesheets.

This chapter wraps up the book. I hope you’ve enjoyed reading about XML and that you’ve expanded your knowledge. XML is a flexible approach to building both client- and server-side web applications, and I hope the contents of this book will make you as enthusiastic about XML as I am!

Pp. 381-416