commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joachim.P...@unisg.ch
Subject [DIGESTER] prefix:namespace list
Date Tue, 02 Dec 2003 10:01:50 GMT
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>


I need this information, for instance to figure out the full name of
message "tns:GetLastTradePriceInput"

thanks!
Joachim


--
Joachim Peer
Research Assistant
MCM Institute, University of St. Gallen




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