[jdom-interest] JDOM questions

Jason Hunter jhunter at collab.net
Fri Jun 8 20:53:01 PDT 2001


> 1. In Namespace specification for doctypedecl the Name in XML
> Recommendation is replaced by QName. JDOM's DocType doesn't support
> it. Why?

Our DocType has an element name value.  It's qualified.  I don't see a
problem.

> 2. I see the new setAttributes method and I see it's not fully implemented
> yet. I think that besides verifying attributes are all parentless you
> should also check for duplicated attributes in the list. Will you?

Yes, of course.

> 3. Why deprecate addAttribute? Wouldn't both setAttribute and addAttribute
> be useful? addAttribute could throw an exception in case of duplicate
> attribute. I think in any case somebody has to do the checking and it
> better be the API then the developer (call first getAttribute and if null
> call setAttribute).

There's no need for two methods to do the same thing.

> 4. Where can I find an XML document which makes heavy use of namespaces
> (about 1MB and up to 5MB)?

I autogenerate fake ones.

-jh-



More information about the jdom-interest mailing list