logo       

Re: multiple namespaces?: msg#00006

java.enhydra.kxml

Subject: Re: multiple namespaces?



Wolfgang Beer wrote:
Hi,

Can anybody tell me how to get out multiple namespaces from a ParseEvent?
e.g.:

<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"; xmlns:Soap="http://schemas.xmlsoap.org/wsdl/soap/"; />

For kXML 2 / xmlpull, this is possible the following way:

for (int i = getNamespaceCount(getDepth()-1); i < getNamespaceCount(getDepth); i++) {
System.out.println ("new namespace: "+getNamespacePrefix(i)+":"+getNamespaceUri(i));
}

Best,
Stefan







--
Stefan Haustein
Univ. Dortmund, FB 4, LS 8 tel: +49 231 755 2499
Baroper Str. 301 fax: +49 231 755 5105
D-44221 Dortmund (Germany) www-ai.cs.uni-dortmund.de


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise