Re: XML Parsing

Axel Hecht <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Eugene Prokopiev wrote:
> Hi,
> 
> I have file people.wsdl:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions 
> targetNamespace="http://localhost:8080/wsapp/services/PeopleService" 
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
>   <wsdl:portType name="PeopleService">
>     <wsdl:operation name="add" parameterOrder="name sex age"/>
>     <wsdl:operation name="getList"/>
>     <wsdl:operation name="del" parameterOrder="id"/>
>   </wsdl:portType>
> </wsdl:definitions>
> 
> I need to get all wsdl:portType and all wsdl:operation for every 
> wsdl:portType.
> 
> Code:
> 
> var doc = 
> document.implementation.createDocument("http://schemas.xmlsoap.org/wsdl/","wsdl",null); 
> 
> doc.load("people.wsdl");

This is async, the rest of the code needs to go into the onload handler. 
See http://www.mozilla.org/projects/xslt/js-interface.html for sample code.

Axel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.