Igor Peshansky wrote:
Peter,
You just got lucky because d.e.f is a valid XML name. If you try a full
URL (e.g., "http://d.e.f"), you'll get a nasty exception.
Technically, DOM keeps the actual namespace URI for all attributes, so
if ant keeps the prefix for all the elements, you can probably look up
the appropriate prefix for a given namespace. However, if some esoteric
namespace is used for all attributes that is different from that of any
element, you'll need to do more work to keep the attribute prefix
around.
Igor
yes, I guess you could walk backwards from the URI to the xmns
declaration, and come up with (some) prefix that matches. alternatively
you could take the (uri,localname) tuple and make up your own prefix to
go with it.
-steve
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]