[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-j-dev
Subject:    Re: XML Schema API and WSDL
From:       Michael Glavassevich <mrglavas () ca ! ibm ! com>
Date:       2009-10-01 17:18:54
Message-ID: OF61204B53.ABD2F894-ON85257642.005EC0E4-85257642.005F252D () ca ! ibm ! com
[Download RAW message or body]

Hi Simon,

Simon.Zuend@blum.com wrote on 10/01/2009 07:50:35 AM:

>
> Hi all,
>
> I have a little problem concerning WSDL files and the XML Schema
> API. I parse WSDL files using the WSDL4J library. That works great
> except for the fact that WSDL4J can't parse XML schemes.
>
> So i wanted to analyze the xml schemes defined in the <types>
> section of the WSDL with the XML Schema API. Where do i get started?
> I can't use the XMLGrammarPreparse because the WSDL file itself is
> not a XML scheme. I just have an org.w3c.dom.Element where the scheme
starts.

You can use XMLGrammarPreparser. Just pass it a DOMInputSource [1]
containing the Element at the root of the schema.

> Thanks & Kind Regards
> Simon

Thanks.

[1]
http://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/util/DOMInputSource.html

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org
[Attachment #3 (text/html)]

<html><body>
<p><tt>Hi Simon,</tt><br>
<br>
<tt>Simon.Zuend@blum.com wrote on 10/01/2009 07:50:35 AM:<br>
<br>
&gt; <br>
&gt; Hi all, <br>
&gt; <br>
&gt; I have a little problem concerning WSDL files and the XML Schema <br>
&gt; API. I parse WSDL files using the WSDL4J library. That works great <br>
&gt; except for the fact that WSDL4J can't parse XML schemes. <br>
&gt; <br>
&gt; So i wanted to analyze the xml schemes defined in the &lt;types&gt; <br>
&gt; section of the WSDL with the XML Schema API. Where do i get started? <br>
&gt; I can't use the XMLGrammarPreparse because the WSDL file itself is <br>
&gt; not a XML scheme. I just have an org.w3c.dom.Element where the scheme \
starts.<br> </tt><br>
<tt>You can use XMLGrammarPreparser. Just pass it a DOMInputSource [1] containing the \
Element at the root of the schema.</tt><br> <tt><br>
&gt; Thanks &amp; Kind Regards <br>
&gt; Simon</tt><br>
<tt><br>
Thanks.</tt><br>
<br>
<tt>[1] </tt><tt><a href="http://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apac \
he/xerces/util/DOMInputSource.html">http://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/util/DOMInputSource.html</a></tt><br>
 <br>
<tt>Michael Glavassevich<br>
XML Parser Development<br>
IBM Toronto Lab<br>
E-mail: mrglavas@ca.ibm.com</tt><br>
<tt>E-mail: mrglavas@apache.org</tt></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic