Namespaces in 20 lines (and dtd encoding)

james anderson James.Anderson at
Wed Aug 5 10:51:26 BST 1998

James Clark wrote:
> At first glance the new namespace draft might appear rather complicated,
> ...

at second glance too...

> String expandName(String name, Element element, boolean isAttribute) {
>   // ...
>   for (; element != null; element = element.getParent()) {
>     String ns = element.getAttributeValue(declAttName);
    // ...
> }

(as an addenda to my questions re dtd encoding:)

how does one do attribute defaulting on attributes in the "xmlns" namespace
when the universal name of the element type is not yet defined?

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as:
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list