Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Getting an element's Children and grand-children!!
Getting an element's Children and grand-children!! [message #52189] Thu, 02 September 2004 13:36 Go to next message
Eclipse UserFriend
Originally posted by: annasser.breathe.com

Hi folks!

I know most of you already have done this heaps of time. I need to build a
simple graph-like structure of any given XSD Schema. To do this I need to
be able tell a Node's (element's) Parent(s) and Children. How do I go
about this. I am a java Programmer but relatively new in this Schema
business.

Cheers
Anne
Re: Getting an element's Children and grand-children!! [message #52221 is a reply to message #52189] Thu, 02 September 2004 14:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Anne,

I'm not sure if your question is about DOM or about the XSD model. Any
XSD component is an instance of EObject, so EObject.eContainer,
EObject.eContents, and EObject.eAllContents are applicable and provide
access to the parent, the contained children, and the whole tree of
contained children, grand children, great grand children, and so on.


anne wrote:

>Hi folks!
>
>I know most of you already have done this heaps of time. I need to build a
>simple graph-like structure of any given XSD Schema. To do this I need to
>be able tell a Node's (element's) Parent(s) and Children. How do I go
>about this. I am a java Programmer but relatively new in this Schema
>business.
>
>Cheers
>Anne
>
>
>
Re: Getting an element's Children and grand-children!! [message #52247 is a reply to message #52221] Fri, 03 September 2004 01:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: annasser.breathe.com

Merks,

Thanks for your thread. My question was about the XSD Infoset model. Sure,
I could be aware that EObject, EObject.eContainer, and the rest exist in
the API, but HOW can I use them to create a directed GRAPH-LIKE structure
of my Schema, where each element/attribute is a Node in the graph with
parent(s) and children. Any help is highly welcome.

Cheers

Nasser

Ed Merks wrote:

> Anne,

> I'm not sure if your question is about DOM or about the XSD model. Any
> XSD component is an instance of EObject, so EObject.eContainer,
> EObject.eContents, and EObject.eAllContents are applicable and provide
> access to the parent, the contained children, and the whole tree of
> contained children, grand children, great grand children, and so on.


> anne wrote:

> >Hi folks!
> >
> >I know most of you already have done this heaps of time. I need to build a
> >simple graph-like structure of any given XSD Schema. To do this I need to
> >be able tell a Node's (element's) Parent(s) and Children. How do I go
> >about this. I am a java Programmer but relatively new in this Schema
> >business.
> >
> >Cheers
> >Anne
> >
> >
> >
Re: Getting an element's Children and grand-children!! [message #52274 is a reply to message #52247] Fri, 03 September 2004 12:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------020309040506010709020908
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Anne,

The XSD model provides this structure directly. I.e., eContainer is the
parent, and eContents are the children; recursively they define exactly
the graph-like structure you say you want. Have you had a look at the
outline view in the Sample XML Schema Editor, which can be used to open
..xsd file? It displays an instance as a tree...


Anne wrote:

>Merks,
>
>Thanks for your thread. My question was about the XSD Infoset model. Sure,
>I could be aware that EObject, EObject.eContainer, and the rest exist in
>the API, but HOW can I use them to create a directed GRAPH-LIKE structure
>of my Schema, where each element/attribute is a Node in the graph with
>parent(s) and children. Any help is highly welcome.
>
>Cheers
>
>Nasser
>
>Ed Merks wrote:
>
>
>
>>Anne,
>>
>>
>
>
>
>>I'm not sure if your question is about DOM or about the XSD model. Any
>>XSD component is an instance of EObject, so EObject.eContainer,
>>EObject.eContents, and EObject.eAllContents are applicable and provide
>>access to the parent, the contained children, and the whole tree of
>>contained children, grand children, great grand children, and so on.
>>
>>
>
>
>
>
>>anne wrote:
>>
>>
>
>
>
>>>Hi folks!
>>>
>>>I know most of you already have done this heaps of time. I need to build a
>>>simple graph-like structure of any given XSD Schema. To do this I need to
>>>be able tell a Node's (element's) Parent(s) and Children. How do I go
>>>about this. I am a java Programmer but relatively new in this Schema
>>>business.
>>>
>>>Cheers
>>>Anne
>>>
>>>
>>>
>>>
>>>
>
>
>
>


--------------020309040506010709020908
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Anne,<br>
<br>
The XSD model provides this structure directly.
Re: Getting an element's Children and grand-children!! [message #52353 is a reply to message #52274] Sat, 04 September 2004 01:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: annasser.breathe.com

Marks,

As I said before, Am relatively new in this areas! Where can I find this
Sample XML Schema Editor?

Cheers
Anne

Ed Merks wrote:

> Anne,

> The XSD model provides this structure directly. I.e., eContainer is the
> parent, and eContents are the children; recursively they define exactly
> the graph-like structure you say you want. Have you had a look at the
> outline view in the Sample XML Schema Editor, which can be used to open
> ..xsd file? It displays an instance as a tree...


> Anne wrote:

> >Merks,
> >
> >Thanks for your thread. My question was about the XSD Infoset model. Sure,
> >I could be aware that EObject, EObject.eContainer, and the rest exist in
> >the API, but HOW can I use them to create a directed GRAPH-LIKE structure
> >of my Schema, where each element/attribute is a Node in the graph with
> >parent(s) and children. Any help is highly welcome.
> >
> >Cheers
> >
> >Nasser
> >
> >Ed Merks wrote:
> >
> >
> >
> >>Anne,
> >>
> >>
> >
> >
> >
> >>I'm not sure if your question is about DOM or about the XSD model. Any
> >>XSD component is an instance of EObject, so EObject.eContainer,
> >>EObject.eContents, and EObject.eAllContents are applicable and provide
> >>access to the parent, the contained children, and the whole tree of
> >>contained children, grand children, great grand children, and so on.
> >>
> >>
> >
> >
> >
> >
> >>anne wrote:
> >>
> >>
> >
> >
> >
> >>>Hi folks!
> >>>
> >>>I know most of you already have done this heaps of time. I need to build a
> >>>simple graph-like structure of any given XSD Schema. To do this I need to
> >>>be able tell a Node's (element's) Parent(s) and Children. How do I go
> >>>about this. I am a java Programmer but relatively new in this Schema
> >>>business.
> >>>
> >>>Cheers
> >>>Anne
> >>>
> >>>
> >>>
> >>>
> >>>
> >
> >
> >
> >
Re: Getting an element's Children and grand-children!! [message #52380 is a reply to message #52353] Sat, 04 September 2004 12:41 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------030905000408040900050202
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Anne,

If you have the plugins installed, you can do "Open With->Sample XML
Schema Editor" with the popup menu for a .xsd file.


Anne wrote:

>Marks,
>
>As I said before, Am relatively new in this areas! Where can I find this
>Sample XML Schema Editor?
>
>Cheers
>Anne
>
>Ed Merks wrote:
>
>
>
>>Anne,
>>
>>
>
>
>
>>The XSD model provides this structure directly. I.e., eContainer is the
>>parent, and eContents are the children; recursively they define exactly
>>the graph-like structure you say you want. Have you had a look at the
>>outline view in the Sample XML Schema Editor, which can be used to open
>>..xsd file? It displays an instance as a tree...
>>
>>
>
>
>
>
>>Anne wrote:
>>
>>
>
>
>
>>>Merks,
>>>
>>>Thanks for your thread. My question was about the XSD Infoset model. Sure,
>>>I could be aware that EObject, EObject.eContainer, and the rest exist in
>>>the API, but HOW can I use them to create a directed GRAPH-LIKE structure
>>>of my Schema, where each element/attribute is a Node in the graph with
>>>parent(s) and children. Any help is highly welcome.
>>>
>>>Cheers
>>>
>>>Nasser
>>>
>>>Ed Merks wrote:
>>>
>>>
>>>
>>>
>>>
>>>>Anne,
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>>I'm not sure if your question is about DOM or about the XSD model. Any
>>>>XSD component is an instance of EObject, so EObject.eContainer,
>>>>EObject.eContents, and EObject.eAllContents are applicable and provide
>>>>access to the parent, the contained children, and the whole tree of
>>>>contained children, grand children, great grand children, and so on.
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>>anne wrote:
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>>>Hi folks!
>>>>>
>>>>>I know most of you already have done this heaps of time. I need to build a
>>>>>simple graph-like structure of any given XSD Schema. To do this I need to
>>>>>be able tell a Node's (element's) Parent(s) and Children. How do I go
>>>>>about this. I am a java Programmer but relatively new in this Schema
>>>>>business.
>>>>>
>>>>>Cheers
>>>>>Anne
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>
>>>
>>>
>>>
>
>
>
>


--------------030905000408040900050202
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Anne,<br>
<br>
If you have the plugins installed, you can do "Open With-&gt;Sample XML
Schema Editor"
Re: Getting an element's Children and grand-children!! [message #591299 is a reply to message #52189] Thu, 02 September 2004 14:26 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Anne,

I'm not sure if your question is about DOM or about the XSD model. Any
XSD component is an instance of EObject, so EObject.eContainer,
EObject.eContents, and EObject.eAllContents are applicable and provide
access to the parent, the contained children, and the whole tree of
contained children, grand children, great grand children, and so on.


anne wrote:

>Hi folks!
>
>I know most of you already have done this heaps of time. I need to build a
>simple graph-like structure of any given XSD Schema. To do this I need to
>be able tell a Node's (element's) Parent(s) and Children. How do I go
>about this. I am a java Programmer but relatively new in this Schema
>business.
>
>Cheers
>Anne
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Getting an element's Children and grand-children!! [message #591306 is a reply to message #52221] Fri, 03 September 2004 01:55 Go to previous message
Anne is currently offline AnneFriend
Messages: 37
Registered: July 2009
Member
Merks,

Thanks for your thread. My question was about the XSD Infoset model. Sure,
I could be aware that EObject, EObject.eContainer, and the rest exist in
the API, but HOW can I use them to create a directed GRAPH-LIKE structure
of my Schema, where each element/attribute is a Node in the graph with
parent(s) and children. Any help is highly welcome.

Cheers

Nasser

Ed Merks wrote:

> Anne,

> I'm not sure if your question is about DOM or about the XSD model. Any
> XSD component is an instance of EObject, so EObject.eContainer,
> EObject.eContents, and EObject.eAllContents are applicable and provide
> access to the parent, the contained children, and the whole tree of
> contained children, grand children, great grand children, and so on.


> anne wrote:

> >Hi folks!
> >
> >I know most of you already have done this heaps of time. I need to build a
> >simple graph-like structure of any given XSD Schema. To do this I need to
> >be able tell a Node's (element's) Parent(s) and Children. How do I go
> >about this. I am a java Programmer but relatively new in this Schema
> >business.
> >
> >Cheers
> >Anne
> >
> >
> >
Re: Getting an element's Children and grand-children!! [message #591319 is a reply to message #52247] Fri, 03 September 2004 12:21 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------020309040506010709020908
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Anne,

The XSD model provides this structure directly. I.e., eContainer is the
parent, and eContents are the children; recursively they define exactly
the graph-like structure you say you want. Have you had a look at the
outline view in the Sample XML Schema Editor, which can be used to open
..xsd file? It displays an instance as a tree...


Anne wrote:

>Merks,
>
>Thanks for your thread. My question was about the XSD Infoset model. Sure,
>I could be aware that EObject, EObject.eContainer, and the rest exist in
>the API, but HOW can I use them to create a directed GRAPH-LIKE structure
>of my Schema, where each element/attribute is a Node in the graph with
>parent(s) and children. Any help is highly welcome.
>
>Cheers
>
>Nasser
>
>Ed Merks wrote:
>
>
>
>>Anne,
>>
>>
>
>
>
>>I'm not sure if your question is about DOM or about the XSD model. Any
>>XSD component is an instance of EObject, so EObject.eContainer,
>>EObject.eContents, and EObject.eAllContents are applicable and provide
>>access to the parent, the contained children, and the whole tree of
>>contained children, grand children, great grand children, and so on.
>>
>>
>
>
>
>
>>anne wrote:
>>
>>
>
>
>
>>>Hi folks!
>>>
>>>I know most of you already have done this heaps of time. I need to build a
>>>simple graph-like structure of any given XSD Schema. To do this I need to
>>>be able tell a Node's (element's) Parent(s) and Children. How do I go
>>>about this. I am a java Programmer but relatively new in this Schema
>>>business.
>>>
>>>Cheers
>>>Anne
>>>
>>>
>>>
>>>
>>>
>
>
>
>


--------------020309040506010709020908
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Anne,<br>
<br>
The XSD model provides this structure directly.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Getting an element's Children and grand-children!! [message #591348 is a reply to message #52274] Sat, 04 September 2004 01:52 Go to previous message
Anne is currently offline AnneFriend
Messages: 37
Registered: July 2009
Member
Marks,

As I said before, Am relatively new in this areas! Where can I find this
Sample XML Schema Editor?

Cheers
Anne

Ed Merks wrote:

> Anne,

> The XSD model provides this structure directly. I.e., eContainer is the
> parent, and eContents are the children; recursively they define exactly
> the graph-like structure you say you want. Have you had a look at the
> outline view in the Sample XML Schema Editor, which can be used to open
> ..xsd file? It displays an instance as a tree...


> Anne wrote:

> >Merks,
> >
> >Thanks for your thread. My question was about the XSD Infoset model. Sure,
> >I could be aware that EObject, EObject.eContainer, and the rest exist in
> >the API, but HOW can I use them to create a directed GRAPH-LIKE structure
> >of my Schema, where each element/attribute is a Node in the graph with
> >parent(s) and children. Any help is highly welcome.
> >
> >Cheers
> >
> >Nasser
> >
> >Ed Merks wrote:
> >
> >
> >
> >>Anne,
> >>
> >>
> >
> >
> >
> >>I'm not sure if your question is about DOM or about the XSD model. Any
> >>XSD component is an instance of EObject, so EObject.eContainer,
> >>EObject.eContents, and EObject.eAllContents are applicable and provide
> >>access to the parent, the contained children, and the whole tree of
> >>contained children, grand children, great grand children, and so on.
> >>
> >>
> >
> >
> >
> >
> >>anne wrote:
> >>
> >>
> >
> >
> >
> >>>Hi folks!
> >>>
> >>>I know most of you already have done this heaps of time. I need to build a
> >>>simple graph-like structure of any given XSD Schema. To do this I need to
> >>>be able tell a Node's (element's) Parent(s) and Children. How do I go
> >>>about this. I am a java Programmer but relatively new in this Schema
> >>>business.
> >>>
> >>>Cheers
> >>>Anne
> >>>
> >>>
> >>>
> >>>
> >>>
> >
> >
> >
> >
Re: Getting an element's Children and grand-children!! [message #591360 is a reply to message #52353] Sat, 04 September 2004 12:41 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030905000408040900050202
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Anne,

If you have the plugins installed, you can do "Open With->Sample XML
Schema Editor" with the popup menu for a .xsd file.


Anne wrote:

>Marks,
>
>As I said before, Am relatively new in this areas! Where can I find this
>Sample XML Schema Editor?
>
>Cheers
>Anne
>
>Ed Merks wrote:
>
>
>
>>Anne,
>>
>>
>
>
>
>>The XSD model provides this structure directly. I.e., eContainer is the
>>parent, and eContents are the children; recursively they define exactly
>>the graph-like structure you say you want. Have you had a look at the
>>outline view in the Sample XML Schema Editor, which can be used to open
>>..xsd file? It displays an instance as a tree...
>>
>>
>
>
>
>
>>Anne wrote:
>>
>>
>
>
>
>>>Merks,
>>>
>>>Thanks for your thread. My question was about the XSD Infoset model. Sure,
>>>I could be aware that EObject, EObject.eContainer, and the rest exist in
>>>the API, but HOW can I use them to create a directed GRAPH-LIKE structure
>>>of my Schema, where each element/attribute is a Node in the graph with
>>>parent(s) and children. Any help is highly welcome.
>>>
>>>Cheers
>>>
>>>Nasser
>>>
>>>Ed Merks wrote:
>>>
>>>
>>>
>>>
>>>
>>>>Anne,
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>>I'm not sure if your question is about DOM or about the XSD model. Any
>>>>XSD component is an instance of EObject, so EObject.eContainer,
>>>>EObject.eContents, and EObject.eAllContents are applicable and provide
>>>>access to the parent, the contained children, and the whole tree of
>>>>contained children, grand children, great grand children, and so on.
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>>anne wrote:
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>>>Hi folks!
>>>>>
>>>>>I know most of you already have done this heaps of time. I need to build a
>>>>>simple graph-like structure of any given XSD Schema. To do this I need to
>>>>>be able tell a Node's (element's) Parent(s) and Children. How do I go
>>>>>about this. I am a java Programmer but relatively new in this Schema
>>>>>business.
>>>>>
>>>>>Cheers
>>>>>Anne
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>
>>>
>>>
>>>
>
>
>
>


--------------030905000408040900050202
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Anne,<br>
<br>
If you have the plugins installed, you can do "Open With-&gt;Sample XML
Schema Editor"


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:MissingResourceException: Missing properties: org/eclipse/xsd/plugin.properties
Next Topic:MissingResourceException: Missing properties: org/eclipse/xsd/plugin.properties
Goto Forum:
  


Current Time: Fri Apr 19 06:28:23 GMT 2024

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

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

Back to the top