Library sample chapters

Beginning XML

Introduction

This is a sample chapter from Beginning XML Programming

In this chapter you will learn:

  • How to create XML elements using start- and end-tags
  • How to further describe elements with attributes
  • How to declare your document as being XML
  • How to send instructions to applications that are processing the XML document
  • Which characters aren't allowed in XML, and how to put them in anyway

Because XML and HTML appear so similar, and because you're probably already familiar with HTML, we'll be making comparisons between the two languages in this chapter. However, if you don't have any knowledge of HTML, you shouldn't find it too hard to follow along.

If you have Internet Explorer 5, you may find it useful to save some of the examples in this chapter on your hard drive, and view the results in the browser. If you don't have IE5, some of the examples will have screenshots to show what the end results look like.

Comments

  1. 16 Dec 2006 at 12:47

    Hi there

    I firstly want to make it clear I am a total beginner when it comes to XHTML etc.
    I am trying to write a number of pages based on some templates and have problems with CSS rendering.

    For my CSS to render properly I have figured out I need the statement <?xml version="1.0" encoding="utf-8"?> in the first line of my php page. So far so good.

    But for my php page to be able to include some statements from the database, I also need <?session_start();?> to be on the first line of my php page.

    Whatever I try, I cannot figure out how to fix the problem.

    Any ideas?

    Cheers

    John

  2. 14 May 2006 at 10:04

    it is very good and useful thanks

  3. 01 Jan 1999 at 00:00

    This thread is for discussions of Beginning XML.

Leave a comment

Sign in or Join us (it's free).

AddThis