O'Reilly logo

Flash XML Applications by Joachim Bernhard Schnier

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6Tutorial

Creating a Universal XHTML Parser

A Simple XML—Text Parser

Our final goal of this chapter is to create a parser for XHTML pages. The parser will recognize the title tag and the style sheet link tag and apply the style sheet and the body tag to set a background color. Of course, the parser will be able to display the text and images from the content within the body tag. However, since this is the first tutorial in which we apply XML methods, we will start with a simpler parser, which will recognize the title tag and set the background color with a defined style sheet. The final parser script will be a few lines longer and will be able to recognize the style sheet link and apply the style sheet to the text. This will allow the application ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required