Hello
again,
I've
given the issue more thought, and instead of deprecating declaredNamespaces why
don't we alter its behaviour (and javadoc) to simply return all its namespaces
that are not in the list of namespaces for its parent element? For an element
with no parent this would be all of them. This would be a nice convenience
method which could be used by anyone wanting to generate output without worrying
about namespaces. Generating namespace declarations for each namespace in the
list of declaredNamespaces for every element would yield correct
documents.
The
only concern I can see is the expense in time and/or space required to determine
what namespaces are in the parent's content but not in the
element's.
Any
thoughts?
--
Steen
|
Title: Message
- [dom4j-dev] declaredNamespaces containing the... Steen Lehmann - SilverStream
- Re: [dom4j-dev] declaredNamespaces conta... Steen Lehmann
- Re: [dom4j-dev] declaredNamespaces c... James Strachan