commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frédéric Laurent ...@opikanoba.org>
Subject Re: [DIGESTER] prefix:namespace list
Date Tue, 02 Dec 2003 14:11:48 GMT
> On Tuesday 02 Dec 2003 10:01 am, you wrote:
>> hi all,
>>
>> What's the best way to  retrieve the namespace declarations of an XML
>> element/document ? For instance in case of the document snippet below, I
>> would like to be able to acquire a Hashtable or something, holding the
>> values { (tns, http://example.com/stockquote.wsdl), (xsd1,
>> http://example.com/stockquote.xsd), ... }, or something like that.
>>
>> <definitions name="StockQuote"
>> targetNamespace="http://example.com/stockquote.wsdl"
>>           xmlns:tns="http://example.com/stockquote.wsdl"
>>           xmlns:xsd1="http://example.com/stockquote.xsd"
>>           xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>>           xmlns="http://schemas.xmlsoap.org/wsdl/">
>> (...)
>>       <input message="tns:GetLastTradePriceInput"/>
>> (...)
>> </definition>

> Do you have to use Digester for this? If you do not then you could use
> SAX2,
> and the namespace information would be available to you via callbacks.
>
> 	http://www.saxproject.org/?selected=namespaces
>

You mean that the digester does not handle namespaces ?
Then you can not write a version of the RSS digester for RSS 1.0
(with RDF, DublinCore,... namespaces)

the digester for RSS 0.9 is here
http://jakarta.apache.org/commons/digester/api/org/apache/commons/digester/rss/package-summary.html


too bad... isn't it ?

Fred

-- 
XPath free testing software :  http://lantern.sourceforge.net
Frédéric Laurent                     http://www.opikanoba.org

---------------------------------------------------------------------
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