Examples from Chapter 13 of The XML Bible, Gold Edition: Namespaces
Listing 13-1: A well-formed XML document that uses HTML and two custom XML applications
Listing 13-2: Placing the person application elements in a separate namespace
Listing 13-3: Declaring a namespace on the root element
Listing 13-4: Declaring all namespaces on the root element
Listing 13-5: Same document, different prefixes
Listing 13-6: Placing the HTML elements in the same namespace
Listing 13-7: Prefixing the HTML elements in the same namespace
Listing 13-8: A MathML math element embedded in a well-formed HTML document
Copyright 1999, 2001
Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified at January 28, 2001