commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertburrelldon...@blueyonder.co.uk>
Subject Re: [DIGESTER] prefix:namespace list
Date Tue, 02 Dec 2003 23:49:59 GMT
On 2 Dec 2003, at 20:58, Janek Bogucki wrote:

>> hi,
>>
>> i circumvent the problem by using JDOM currently (heck, I have a bias
>> towards high level API's ;-)) , but i thought maybe Digester has a  
>> similar
>> built-in function to retrieve the list of Namespaces and their  
>> prefixes.
>> Looks like this is not the case...
>>
>> so, I have to decide whether to  tweak  my copy of Digester or to  
>> stick to
>> my current solution... well, i'll see
>>
>> thanks!
>> Joe
>
> You don't need to change Digester to get access to namespace  
> information.
> Subclass Digester and override #startPrefixMapping to grab the mapping  
> you
> want and then invoke the superclass's startPrefixMapping method.
>
> startPrefixMapping JavaDoc:
>      
> http://www.saxproject.org/apidoc/org/xml/sax/ 
> ContentHandler.html#startPrefixMapping(java.lang.String,%20java.lang.St 
> ring)
>
> There's an example of subclassing Digester to obtain processing
> instructions here:
>      
> http://marc.theaimsgroup.com/?l=jakarta-commons- 
> user&m=106448466019682&w=4

+1

- robert


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message