Title: Tutorial: Creating a Universal XHTML Parser
Abstract: 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 of any style sheet given in an XHTML page. Then all you need is to write the XHTML page using your favorite editor, such as BBedit, Dreamweaver, or just Notepad.
Publication Year: 2008
Publication Date: 2008-01-01
Language: en
Type: book-chapter
Indexed In: ['crossref']
Access and Citation
AI Researcher Chatbot
Get quick answers to your questions about the article from our AI researcher chatbot