Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Extension Attributes
Extension Attributes [message #11525] Fri, 28 February 2003 17:43 Go to next message
Eclipse User
Originally posted by: dsingh.altoweb.com

Hi all,

I have a question about parsing XSD schemas that are used to describe
web service data types. I use the XSD parser to construct an instance
document and I'm having a slight problem with the following.

<xsd:complexType name="ArrayOfString">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array>
<attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="string[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>

Is there a way through the API to retrieve the extenstion attributes?

Thanks

Dharminder Singh
Re: Extension Attributes [message #11563 is a reply to message #11525] Fri, 28 February 2003 18:57 Go to previous message
Eclipse User
Originally posted by: merks.ca.ibm.com

--------------12AB854ECB31FB69F109F151
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Dharminder,

You can drop down into the DOM and look for them:

Element attributeElement = xsdAttributeUse.getElement();
if (attributeElement != null &&
attributeElement.hasAttributeNS(WSDL_URI, "arrayType"))
{
}


Dharminder Singh wrote:

> Hi all,
>
> I have a question about parsing XSD schemas that are used to describe
> web service data types. I use the XSD parser to construct an instance
> document and I'm having a slight problem with the following.
>
> <xsd:complexType name="ArrayOfString">
> <xsd:complexContent>
> <xsd:restriction base="SOAP-ENC:Array>
> <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="string[]"/>
> </xsd:restriction>
> </xsd:complexContent>
> </xsd:complexType>
>
> Is there a way through the API to retrieve the extenstion attributes?
>
> Thanks
>
> Dharminder Singh

--------------12AB854ECB31FB69F109F151
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Dharminder,
<p>You can drop down into the DOM and look for them:
<blockquote>&nbsp;Element attributeElement = xsdAttributeUse.getElement();
<br>&nbsp;if (attributeElement != null &amp;&amp; attributeElement.hasAttributeNS(WSDL_URI,
"arrayType"))
<br>{
<br>}
<br>&nbsp;</blockquote>
Dharminder Singh wrote:
<blockquote TYPE=CITE>Hi all,
<p>I have a question about parsing XSD schemas that are used to describe
<br>web service data types. I use the XSD parser to construct an instance
<br>document and I'm having a slight problem with the following.
<p>&lt;xsd:complexType name="ArrayOfString">
<br>&nbsp; &lt;xsd:complexContent>
<br>&nbsp;&nbsp; &lt;xsd:restriction base="SOAP-ENC:Array>
<br>&nbsp;&nbsp;&nbsp; &lt;attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="string[]"/>
<br>&nbsp;&nbsp; &lt;/xsd:restriction>
<br>&nbsp; &lt;/xsd:complexContent>
<br>&lt;/xsd:complexType>
<p>Is there a way through the API to retrieve the extenstion attributes?
<p>Thanks
<p>Dharminder Singh</blockquote>
</html>

--------------12AB854ECB31FB69F109F151--
Re: Extension Attributes [message #565343 is a reply to message #11525] Fri, 28 February 2003 18:57 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25917
Registered: July 2009
Senior Member
--------------12AB854ECB31FB69F109F151
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Dharminder,

You can drop down into the DOM and look for them:

Element attributeElement = xsdAttributeUse.getElement();
if (attributeElement != null &&
attributeElement.hasAttributeNS(WSDL_URI, "arrayType"))
{
}


Dharminder Singh wrote:

> Hi all,
>
> I have a question about parsing XSD schemas that are used to describe
> web service data types. I use the XSD parser to construct an instance
> document and I'm having a slight problem with the following.
>
> <xsd:complexType name="ArrayOfString">
> <xsd:complexContent>
> <xsd:restriction base="SOAP-ENC:Array>
> <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="string[]"/>
> </xsd:restriction>
> </xsd:complexContent>
> </xsd:complexType>
>
> Is there a way through the API to retrieve the extenstion attributes?
>
> Thanks
>
> Dharminder Singh

--------------12AB854ECB31FB69F109F151
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Dharminder,
<p>You can drop down into the DOM and look for them:
<blockquote>&nbsp;Element attributeElement = xsdAttributeUse.getElement();
<br>&nbsp;if (attributeElement != null &amp;&amp; attributeElement.hasAttributeNS(WSDL_URI,
"arrayType"))
<br>{
<br>}
<br>&nbsp;</blockquote>
Dharminder Singh wrote:
<blockquote TYPE=CITE>Hi all,
<p>I have a question about parsing XSD schemas that are used to describe
<br>web service data types. I use the XSD parser to construct an instance
<br>document and I'm having a slight problem with the following.
<p>&lt;xsd:complexType name="ArrayOfString">
<br>&nbsp; &lt;xsd:complexContent>
<br>&nbsp;&nbsp; &lt;xsd:restriction base="SOAP-ENC:Array>
<br>&nbsp;&nbsp;&nbsp; &lt;attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="string[]"/>
<br>&nbsp;&nbsp; &lt;/xsd:restriction>
<br>&nbsp; &lt;/xsd:complexContent>
<br>&lt;/xsd:complexType>
<p>Is there a way through the API to retrieve the extenstion attributes?
<p>Thanks
<p>Dharminder Singh</blockquote>
</html>

--------------12AB854ECB31FB69F109F151--
Previous Topic:Extension Attributes
Next Topic:restricting attributes
Goto Forum:
  


Current Time: Thu Jul 24 02:33:54 EDT 2014

Powered by FUDForum. Page generated in 0.03138 seconds