Are the names of all element types and attributes in some XML namespace?

Are the names of all element types and attributes in some XML namespace?

No.
If an element type or attribute name is not specifically declared to be in an XML namespace — that is, it is unprefixed and (in the case of element type names) there is no default XML namespace — then that name is not [...]

How do I undeclare the default XML namespace?

How do I undeclare the default XML namespace?
To “undeclare” the default XML namespace, you declare a default XML namespace with an empty (zero-length) name (URI). Within the scope of this declaration, unprefixed element type names do not belong to any XML namespace. For example, in the following, the default XML namespace is the http://www.google.org/ for [...]

How do I use the default XML namespace to refer to attribute names in an XML namespace?

How do I use the default XML namespace to refer to attribute names in an XML namespace?

You can’t.
The default XML namespace only applies to element type names, so you can refer to attribute names that are in an XML namespace only with a prefix. For example, suppose that you declared the http://http://www.w3.org/to/addresses namespace as the [...]

What is an XML namespace name?

What is an XML namespace name?
An XML namespace name is a URI that uniquely identifies the namespace. URIs are used because they are widely understood and well documented. Because people may only allocate URIs under their control, it is easy to ensure that no two XML namespaces are identified by the same URI.
Can I resolve [...]

Where can qualified names appear?

Where can qualified names appear?

Qualified names can appear anywhere an element type or attribute name can appear: in start and end tags, as the document element type, and in element type and attribute declarations in the DTD. For example:

<!DOCTYPE foo:A [
<!ELEMENT foo:A (foo:B)>
<!ATTLIST foo:A
foo:C CDATA #IMPLIED>
<!ELEMENT foo:B (#PCDATA)>
]>
<foo:A xmlns:foo="http://www.foo.org/" foo:C="bar">
<foo:B>abcd
<foo:A>

Qualified names cannot appear as entity [...]

How do applications process documents that use XML namespaces?

How do applications process documents that use XML namespaces?
Applications process documents that use XML namespaces in almost exactly the same way they process documents that don’t use XML namespaces. For example, if a namespace-unaware application adds a new sales order to a database when it encounters a SalesOrder element, the equivalent namespace-aware application does the [...]

How can I allow the prefixes in my document to be different from the prefixes in my DTD?

How can I allow the prefixes in my document to be different from the prefixes in my DTD?

One of the problems with the solution proposed in question is that it requires the prefixes in the document to match those in the DTD. Fortunately, there is a workaround for this problem, although it does require that [...]

Can I use qualified names in DTDs?

Can I use qualified names in DTDs?

Yes.
For example, the following is legal:

<!ELEMENT google:A (google:B)>
<!ATTLIST google:A
google:C CDATA #IMPLIED>
<!ELEMENT google:B (#PCDATA)>

However, because XML namespace declarations do not apply to DTDs , qualified names in the DTD cannot be converted to universal names. As a result, qualified names in the DTD have no special meaning. For example, google:A [...]

If an element or attribute is in the scope of an XML namespace declaration, is its name in that namespace?

If an element or attribute is in the scope of an XML namespace declaration, is its name in that namespace?

Not necessarily.
When an element or attribute is in the scope of an XML namespace declaration, the element or attribute’s name is checked to see if it has a prefix that matches the prefix in the declaration. [...]

Where can I declare an XML namespace?

Where can I declare an XML namespace?

You can declare an XML namespace on any element in an XML document. The namespace is in scope for that element and all its descendants unless it is overridden.
Can I use an attribute default in a DTD to declare an XML namespace?

Yes.
For example, the following uses the FIXED attribute [...]