Como obter o atributo "xmlns: XXX" se definido setNamespaceAware (true) no SAX?

Aqui está o meu código:

path = wsdlPath;
SAXParserFactory saxfac = SAXParserFactory.newInstance();
saxfac.setNamespaceAware(true);
saxfac.setXIncludeAware(true);
saxfac.setValidating(false);
SAXParser saxParser = saxfac.newSAXParser();
saxParser.parse(wsdlPath, this);

Depois da configuraçãosetNamespaceAware=true, Não consigo obter oxmlns:XXX atributos no parâmetroattributes do métodopublic void startElement(String uri, String localName, String qName, Attributes attributes).

para o seguinte nó:

<definitions name="Service1"
    targetNamespace="http://www.test.com/service"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:tns="http://www.test.com/">

Acabei de recebername etargetNamespace attribute.xmlns, xmlns:wsdl, xmlns:mime, xmlns:http exmlns:tns estão naattributes parâmetro. Mas eles não são acessíveis.

Existe alguma maneira de usarsetNamespaceAware=true e obtém todos os atributos de um n

questionAnswers(2)

yourAnswerToTheQuestion