• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. XML Documents > Experimenting With XML

Experimenting With XML

Recent versions of Internet Explorer, Opera, and FireFox support XML combined with CSS. The basic rules are as follows:

  1. If you use an element <abc>, you must end it with </abc>. Unlike HTML, no tags may be omitted.

  2. If the element is empty (has no end tag), you must end it with a slash: <xyz/>.

  3. If you use an attribute att="value", make sure you put quotes around the value. Unlike in HTML, all attributes, even simple ones, must be quoted.

  4. Style sheets cannot be in the same file as the XML document. Instead, put a line like this at the top of the XML document (note the two question marks):

    <?xml-stylesheet href="my-style.css"?>
    

PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint