Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » ComplexType: Obtain elements of a sequence
ComplexType: Obtain elements of a sequence [message #595863] Tue, 28 June 2005 11:35
Eclipse User
Originally posted by: sa840.soi.city.ac.uk

This is a multi-part message in MIME format.

------=_NextPart_000_001C_01C57C07.D5035D70
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all,
I have something like:
<complexType name=3D"InputAddress">

<sequence>

<element name=3D"address" nillable=3D"true" =
type=3D"xsd:string"/>

<element name=3D"cityName" nillable=3D"true" =
type=3D"xsd:string"/>



</sequence>

</complexType>

I also have the CompexType stored in a "XSDComplexTypeDefinition" =
variable. The question is: How can I access the elements of the =
sequence?
Thanks in advance....
------=_NextPart_000_001C_01C57C07.D5035D70
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2668" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV>Hi all,</DIV>
<DIV>I have something like:</DIV>
<DIV>
<P><FONT size=3D2><FONT color=3D#0000ff>&lt;</FONT><FONT=20
color=3D#800000>complexType</FONT><FONT color=3D#ff0000> =
name</FONT><FONT=20
color=3D#0000ff>=3D"</FONT>InputAddress<FONT =
color=3D#0000ff>"&gt;</P></FONT></FONT>
<P><FONT size=3D2><FONT color=3D#0000ff>&nbsp;&nbsp;&nbsp; =
&lt;</FONT><FONT=20
color=3D#800000>sequence</FONT><FONT =
color=3D#0000ff>&gt;</P></FONT></FONT>
<P><FONT size=3D2><FONT color=3D#0000ff>&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&lt;</FONT><FONT color=3D#800000>element</FONT><FONT color=3D#ff0000>=20
name</FONT><FONT color=3D#0000ff>=3D"</FONT>address<FONT =
color=3D#0000ff>"</FONT><FONT=20
color=3D#ff0000> nillable</FONT><FONT =
color=3D#0000ff>=3D"</FONT>true<FONT=20
color=3D#0000ff>"</FONT><FONT color=3D#ff0000> type</FONT><FONT=20
color=3D#0000ff>=3D"</FONT>xsd:string<FONT =
color=3D#0000ff>"/&gt;</P></FONT></FONT>
<P><FONT size=3D2><FONT color=3D#0000ff>&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&lt;</FONT><FONT color=3D#800000>element</FONT><FONT color=3D#ff0000>=20
name</FONT><FONT color=3D#0000ff>=3D"</FONT>cityName<FONT=20
color=3D#0000ff>"</FONT><FONT color=3D#ff0000> nillable</FONT><FONT=20
color=3D#0000ff>=3D"</FONT>true<FONT color=3D#0000ff>"</FONT><FONT =
color=3D#ff0000>=20
type</FONT><FONT color=3D#0000ff>=3D"</FONT>xsd:string<FONT=20
color=3D#0000ff>"/&gt;</P></FONT></FONT>
<P>
<P><FONT size=3D2><FONT color=3D#0000ff></P></FONT></FONT><FONT =
size=3D2><FONT=20
color=3D#0000ff>&nbsp;&nbsp;&nbsp; &lt;/</FONT><FONT=20
color=3D#800000>sequence</FONT><FONT =
color=3D#0000ff>&gt;</P></FONT></FONT>
<P><FONT size=3D2><FONT color=3D#0000ff>&lt;/</FONT><FONT=20
color=3D#800000>complexType</FONT><FONT =
color=3D#0000ff>&gt;</P></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I also have the CompexType stored in a=20
"XSDComplexTypeDefinition" variable. The question is: How can I access =
the=20
elements of the sequence?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in =
advance....</FONT></DIV></BODY></HTML>

------=_NextPart_000_001C_01C57C07.D5035D70--
Previous Topic:my element is declared in schema A and its type in schema B, how to get its type
Next Topic:ComplexType: Obtain elements of a sequence
Goto Forum:
  


Current Time: Mon Jul 28 10:35:11 EDT 2014

Powered by FUDForum. Page generated in 0.01453 seconds