axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aleksander Slominski <as...@cs.indiana.edu>
Subject Re: [Axis2][OM] Simpler way to get NameSpace
Date Thu, 09 Dec 2004 11:31:54 GMT
Sanjiva Weerawarana wrote:

>"Aleksander Slominski" <aslom@cs.indiana.edu> writes:
>  
>
>>well i think using namespace as String is not the best way. much better 
>>is OmNamespace immutable object that can be shared and passed around and 
>>compared with other namespaces. so this means code is OmNamespace = 
>>el.getNamespace() - which is as simple as it gets (and type safe too ...)
>>    
>>
>
>So is it the case that OmNamespace has *ONLY* an NSURI string in it?
>(SVN is down right now so can't get the latest code to check.)
>
>If yes then you can of course compare strings using == too and get
>the same return - just intern the NSURI strings. If the namespace
>has the prefix then its broken of course .. two namespace names can
>be the same with different prefixes assigned to them.
>
>It seems that Srinath's suggestion will be a simpler solution ??
>
>  
>
XML Infoset Namespace Information Item has prefix and uri inside.


>>which is exactly the same argument as for QName value object ...
>>    
>>
>
>??? QName is a name with two parts .. so you have to have an object.
>  
>
XML Infoset Namespace has also two parts.

alek

-- 
The best way to predict the future is to invent it - Alan Kay


Mime
View raw message