Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Extension Attributes
Extension Attributes [message #11525] Fri, 28 February 2003 22:43 Go to next message
Eclipse UserFriend
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 23:57 Go to previous message
Eclipse UserFriend
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 23:57 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
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--


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Extension Attributes
Next Topic:restricting attributes
Goto Forum:
  


Current Time: Thu Mar 28 09:13:03 GMT 2024

Powered by FUDForum. Page generated in 0.04757 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top