Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Help needed analysing a XSD schema w/ complex types
Help needed analysing a XSD schema w/ complex types [message #18761] Wed, 16 April 2003 14:29 Go to next message
Eclipse UserFriend
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 16:23 Go to previous message
Eclipse UserFriend
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>&nbsp;&nbsp; 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> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
Name: getPublications.xsd
<br>&nbsp;&nbsp; getPublications.xsd&nbsp;&nbsp;&nbsp; Type: unspecified
type (application/octet-stream)
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
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 16:23 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
--------------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>&nbsp;&nbsp; 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> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
Name: getPublications.xsd
<br>&nbsp;&nbsp; getPublications.xsd&nbsp;&nbsp;&nbsp; Type: unspecified
type (application/octet-stream)
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
Encoding: x-uuencode</blockquote>
</html>

--------------67AA096C1E64B5EF514B5094--


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Find an XSD element
Next Topic:CDATA-Sections
Goto Forum:
  


Current Time: Fri Apr 19 20:23:24 GMT 2024

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

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

Back to the top