ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject Re: QName in DynamicAttributeNS
Date Wed, 14 Jun 2006 12:04:52 GMT
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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message