Help needed analysing a XSD schema w/ complex types [message #18761] |
Wed, 16 April 2003 10:29  |
Eclipse User |
|
|
|
Originally posted by: dirk.schesmer.divos.de
Hi there,
well, I have successfully generated schemas using the XSD library and am
able to read and evaluate Schema containg simple type (see
FindTypesMissingFacets.xsd and associated Java code).
What I would like to ask you to get some help for is: How to traverse a
schema being comprised of complex types and simple (best would be both named
and anonymous) types from the root node down to the leaf nodes.
I'd like to get a starting point to analyse e.g. the demo schema I created
dealing with book publications.
Thanks for help,
Dirk V. Schesmer
|
|
|
Re: Help needed analysing a XSD schema w/ complex types [message #18838 is a reply to message #18761] |
Wed, 16 April 2003 12:23  |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
--------------67AA096C1E64B5EF514B5094
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Dirk,
The following code will visit every contained object in the schema's tree:
for (Iterator i = xsdSchema.eAllContents(); i.hasNext(); )
{
XSDConcreteComponent xsdConcreteComponent =
(XSDConcreteComponent)i.next();
}
"Dirk V. Schesmer" wrote:
> Hi there,
> well, I have successfully generated schemas using the XSD library and am
> able to read and evaluate Schema containg simple type (see
> FindTypesMissingFacets.xsd and associated Java code).
> What I would like to ask you to get some help for is: How to traverse a
> schema being comprised of complex types and simple (best would be both named
> and anonymous) types from the root node down to the leaf nodes.
>
> I'd like to get a starting point to analyse e.g. the demo schema I created
> dealing with book publications.
>
> Thanks for help,
> Dirk V. Schesmer
>
> Name: getPublications.xsd
> getPublications.xsd Type: unspecified type (application/octet-stream)
> Encoding: x-uuencode
--------------67AA096C1E64B5EF514B5094
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Dirk,
<p>The following code will visit every contained object in the schema's
tree:
<blockquote>for (Iterator i = xsdSchema.eAllContents(); i.hasNext(); )
<br>{
<br> XSDConcreteComponent xsdConcreteComponent = (XSDConcreteComponent)i.next();
<br>}</blockquote>
"Dirk V. Schesmer" wrote:
<blockquote TYPE=CITE>Hi there,
<br>well, I have successfully generated schemas using the XSD library and
am
<br>able to read and evaluate Schema containg simple type (see
<br>FindTypesMissingFacets.xsd and associated Java code).
<br>What I would like to ask you to get some help for is: How to traverse
a
<br>schema being comprised of complex types and simple (best would be both
named
<br>and anonymous) types from the root node down to the leaf nodes.
<p>I'd like to get a starting point to analyse e.g. the demo schema I created
<br>dealing with book publications.
<p>Thanks for help,
<br>Dirk V. Schesmer
<p>
Name: getPublications.xsd
<br> getPublications.xsd Type: unspecified
type (application/octet-stream)
<br>
Encoding: x-uuencode</blockquote>
</html>
--------------67AA096C1E64B5EF514B5094--
|
|
|
Re: Help needed analysing a XSD schema w/ complex types [message #568053 is a reply to message #18761] |
Wed, 16 April 2003 12:23  |
Eclipse User |
|
|
|
--------------67AA096C1E64B5EF514B5094
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Dirk,
The following code will visit every contained object in the schema's tree:
for (Iterator i = xsdSchema.eAllContents(); i.hasNext(); )
{
XSDConcreteComponent xsdConcreteComponent =
(XSDConcreteComponent)i.next();
}
"Dirk V. Schesmer" wrote:
> Hi there,
> well, I have successfully generated schemas using the XSD library and am
> able to read and evaluate Schema containg simple type (see
> FindTypesMissingFacets.xsd and associated Java code).
> What I would like to ask you to get some help for is: How to traverse a
> schema being comprised of complex types and simple (best would be both named
> and anonymous) types from the root node down to the leaf nodes.
>
> I'd like to get a starting point to analyse e.g. the demo schema I created
> dealing with book publications.
>
> Thanks for help,
> Dirk V. Schesmer
>
> Name: getPublications.xsd
> getPublications.xsd Type: unspecified type (application/octet-stream)
> Encoding: x-uuencode
--------------67AA096C1E64B5EF514B5094
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Dirk,
<p>The following code will visit every contained object in the schema's
tree:
<blockquote>for (Iterator i = xsdSchema.eAllContents(); i.hasNext(); )
<br>{
<br> XSDConcreteComponent xsdConcreteComponent = (XSDConcreteComponent)i.next();
<br>}</blockquote>
"Dirk V. Schesmer" wrote:
<blockquote TYPE=CITE>Hi there,
<br>well, I have successfully generated schemas using the XSD library and
am
<br>able to read and evaluate Schema containg simple type (see
<br>FindTypesMissingFacets.xsd and associated Java code).
<br>What I would like to ask you to get some help for is: How to traverse
a
<br>schema being comprised of complex types and simple (best would be both
named
<br>and anonymous) types from the root node down to the leaf nodes.
<p>I'd like to get a starting point to analyse e.g. the demo schema I created
<br>dealing with book publications.
<p>Thanks for help,
<br>Dirk V. Schesmer
<p>
Name: getPublications.xsd
<br> getPublications.xsd Type: unspecified
type (application/octet-stream)
<br>
Encoding: x-uuencode</blockquote>
</html>
--------------67AA096C1E64B5EF514B5094--
|
|
|
Powered by
FUDForum. Page generated in 0.06268 seconds