Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Create 'template' xml from xsd model
Create 'template' xml from xsd model [message #49177] Tue, 20 July 2004 16:59 Go to next message
Eclipse UserFriend
Originally posted by: gary_.pureedge.com

Given an XSDSchema object I want to to generate a template XML tree using
all elements defined in the schema. In other words it would be the most
complete document that could be generated from the schema with all optional
elements and choices.

In my case I intend to generate an XML model that also contains not one but
all of the <choice> elements which means of course that the xml will not
validate against the schema but that's not what I want to do with it. I
just want an XML model that contains all the elements defined in the schema.

If someone could point me to the right place or has any ideas I would
appreciate it very much. Has anyone seen anything like this before or
anything close? Maybe anything that generates sample XML from a schema
would help.
Re: Create 'template' xml from xsd model [message #49377 is a reply to message #49177] Mon, 26 July 2004 11:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Gary wrote:

>Given an XSDSchema object I want to to generate a template XML tree using
>all elements defined in the schema. In other words it would be the most
>complete document that could be generated from the schema with all optional
>elements and choices.
>
>In my case I intend to generate an XML model that also contains not one but
>all of the <choice> elements which means of course that the xml will not
>validate against the schema but that's not what I want to do with it. I
>just want an XML model that contains all the elements defined in the schema.
>
>If someone could point me to the right place or has any ideas I would
>appreciate it very much. Has anyone seen anything like this before or
>anything close? Maybe anything that generates sample XML from a schema
>would help.
>
>
>
>
Gary,

There have been previous appends on this subject in the newsgroup,
including folks willing to share code that does this kind of thing. If
I have time later, I'll track the notes down...
Re: Create 'template' xml from xsd model [message #49466 is a reply to message #49377] Mon, 26 July 2004 20:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gary_.pureedge.com

Thanks

If you have any references I would appreciate it. Even if you remember a
subject line so I can search myself



"Ed Merks" <merks@ca.ibm.com> wrote in message
news:ce2rgi$n3h$1@eclipse.org...
> Gary wrote:
>
> >Given an XSDSchema object I want to to generate a template XML tree using
> >all elements defined in the schema. In other words it would be the most
> >complete document that could be generated from the schema with all
optional
> >elements and choices.
> >
> >In my case I intend to generate an XML model that also contains not one
but
> >all of the <choice> elements which means of course that the xml will not
> >validate against the schema but that's not what I want to do with it. I
> >just want an XML model that contains all the elements defined in the
schema.
> >
> >If someone could point me to the right place or has any ideas I would
> >appreciate it very much. Has anyone seen anything like this before or
> >anything close? Maybe anything that generates sample XML from a schema
> >would help.
> >
> >
> >
> >
> Gary,
>
> There have been previous appends on this subject in the newsgroup,
> including folks willing to share code that does this kind of thing. If
> I have time later, I'll track the notes down...
Re: Create 'template' xml from xsd model [message #49526 is a reply to message #49466] Tue, 27 July 2004 16:08 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.
--------------020108080004030103070404
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Gary,

The note from Tod Rice on 04/28 will be useful.


Gary wrote:

>Thanks
>
>If you have any references I would appreciate it. Even if you remember a
>subject line so I can search myself
>
>
>
>"Ed Merks" <merks@ca.ibm.com> wrote in message
>news:ce2rgi$n3h$1@eclipse.org...
>
>
>>Gary wrote:
>>
>>
>>
>>>Given an XSDSchema object I want to to generate a template XML tree using
>>>all elements defined in the schema. In other words it would be the most
>>>complete document that could be generated from the schema with all
>>>
>>>
>optional
>
>
>>>elements and choices.
>>>
>>>In my case I intend to generate an XML model that also contains not one
>>>
>>>
>but
>
>
>>>all of the <choice> elements which means of course that the xml will not
>>>validate against the schema but that's not what I want to do with it. I
>>>just want an XML model that contains all the elements defined in the
>>>
>>>
>schema.
>
>
>>>If someone could point me to the right place or has any ideas I would
>>>appreciate it very much. Has anyone seen anything like this before or
>>>anything close? Maybe anything that generates sample XML from a schema
>>>would help.
>>>
>>>
>>>
>>>
>>>
>>>
>>Gary,
>>
>>There have been previous appends on this subject in the newsgroup,
>>including folks willing to share code that does this kind of thing. If
>>I have time later, I'll track the notes down...
>>
>>
>
>
>
>


--------------020108080004030103070404
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Gary,<br>
<br>
The note from Tod Rice on 04/28 will be useful.<br>
<br>
<br>
Gary wrote:<br>
<blockquote cite="midce3r0j$6hs$1@eclipse.org" type="cite">
<pre wrap="">Thanks

If you have any references I would appreciate it. Even if you remember a
subject line so I can search myself



"Ed Merks" <a class="moz-txt-link-rfc2396E" href="mailto:merks@ca.ibm.com">&lt;merks@ca.ibm.com&gt;</a> wrote in message
<a class="moz-txt-link-freetext" href="news:ce2rgi$n3h$1@eclipse.org">news:ce2rgi$n3h$1@eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Gary wrote:

</pre>
<blockquote type="cite">
<pre wrap="">Given an XSDSchema object I want to to generate a template XML tree using
all elements defined in the schema. In other words it would be the most
complete document that could be generated from the schema with all
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->optional
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">elements and choices.

In my case I intend to generate an XML model that also contains not one
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->but
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">all of the &lt;choice&gt; elements which means of course that the xml will not
validate against the schema but that's not what I want to do with it. I
just want an XML model that contains all the elements defined in the
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->schema.
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">If someone could point me to the right place or has any ideas I would
appreciate it very much. Has anyone seen anything like this before or
anything close? Maybe anything that generates sample XML from a schema
would help.




</pre>
</blockquote>
<pre wrap="">Gary,

There have been previous appends on this subject in the newsgroup,
including folks willing to share code that does this kind of thing. If
I have time later, I'll track the notes down...
</pre>
</blockquote>
<pre wrap=""><!---->

</pre>
</blockquote>
<br>
</body>
</html>

--------------020108080004030103070404--
Re: Create 'template' xml from xsd model [message #49586 is a reply to message #49526] Tue, 27 July 2004 18:38 Go to previous message
Eclipse UserFriend
Originally posted by: gary_.pureedge.com

Great. Could be exactly what I'm looking for and I may be interested in
contributing as well on this one. I'll let Rob Tice know.

Thanks

Gary


"Ed Merks" <merks@ca.ibm.com> wrote in message
news:ce5uit$54m$1@eclipse.org...
Gary,

The note from Tod Rice on 04/28 will be useful.


Gary wrote:

Thanks

If you have any references I would appreciate it. Even if you remember a
subject line so I can search myself



"Ed Merks" <merks@ca.ibm.com> wrote in message
news:ce2rgi$n3h$1@eclipse.org...

Gary wrote:


Given an XSDSchema object I want to to generate a template XML tree using
all elements defined in the schema. In other words it would be the most
complete document that could be generated from the schema with all

optional

elements and choices.

In my case I intend to generate an XML model that also contains not one

but

all of the <choice> elements which means of course that the xml will not
validate against the schema but that's not what I want to do with it. I
just want an XML model that contains all the elements defined in the

schema.

If someone could point me to the right place or has any ideas I would
appreciate it very much. Has anyone seen anything like this before or
anything close? Maybe anything that generates sample XML from a schema
would help.





Gary,

There have been previous appends on this subject in the newsgroup,
including folks willing to share code that does this kind of thing. If
I have time later, I'll track the notes down...
Re: Create 'template' xml from xsd model [message #589844 is a reply to message #49177] Mon, 26 July 2004 11:57 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33255
Registered: July 2009
Senior Member
Gary wrote:

>Given an XSDSchema object I want to to generate a template XML tree using
>all elements defined in the schema. In other words it would be the most
>complete document that could be generated from the schema with all optional
>elements and choices.
>
>In my case I intend to generate an XML model that also contains not one but
>all of the <choice> elements which means of course that the xml will not
>validate against the schema but that's not what I want to do with it. I
>just want an XML model that contains all the elements defined in the schema.
>
>If someone could point me to the right place or has any ideas I would
>appreciate it very much. Has anyone seen anything like this before or
>anything close? Maybe anything that generates sample XML from a schema
>would help.
>
>
>
>
Gary,

There have been previous appends on this subject in the newsgroup,
including folks willing to share code that does this kind of thing. If
I have time later, I'll track the notes down...


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Create 'template' xml from xsd model [message #589888 is a reply to message #49377] Mon, 26 July 2004 20:55 Go to previous message
Gary is currently offline GaryFriend
Messages: 8
Registered: July 2009
Junior Member
Thanks

If you have any references I would appreciate it. Even if you remember a
subject line so I can search myself



"Ed Merks" <merks@ca.ibm.com> wrote in message
news:ce2rgi$n3h$1@eclipse.org...
> Gary wrote:
>
> >Given an XSDSchema object I want to to generate a template XML tree using
> >all elements defined in the schema. In other words it would be the most
> >complete document that could be generated from the schema with all
optional
> >elements and choices.
> >
> >In my case I intend to generate an XML model that also contains not one
but
> >all of the <choice> elements which means of course that the xml will not
> >validate against the schema but that's not what I want to do with it. I
> >just want an XML model that contains all the elements defined in the
schema.
> >
> >If someone could point me to the right place or has any ideas I would
> >appreciate it very much. Has anyone seen anything like this before or
> >anything close? Maybe anything that generates sample XML from a schema
> >would help.
> >
> >
> >
> >
> Gary,
>
> There have been previous appends on this subject in the newsgroup,
> including folks willing to share code that does this kind of thing. If
> I have time later, I'll track the notes down...
Re: Create 'template' xml from xsd model [message #589913 is a reply to message #49466] Tue, 27 July 2004 16:08 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33255
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------020108080004030103070404
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Gary,

The note from Tod Rice on 04/28 will be useful.


Gary wrote:

>Thanks
>
>If you have any references I would appreciate it. Even if you remember a
>subject line so I can search myself
>
>
>
>"Ed Merks" <merks@ca.ibm.com> wrote in message
>news:ce2rgi$n3h$1@eclipse.org...
>
>
>>Gary wrote:
>>
>>
>>
>>>Given an XSDSchema object I want to to generate a template XML tree using
>>>all elements defined in the schema. In other words it would be the most
>>>complete document that could be generated from the schema with all
>>>
>>>
>optional
>
>
>>>elements and choices.
>>>
>>>In my case I intend to generate an XML model that also contains not one
>>>
>>>
>but
>
>
>>>all of the <choice> elements which means of course that the xml will not
>>>validate against the schema but that's not what I want to do with it. I
>>>just want an XML model that contains all the elements defined in the
>>>
>>>
>schema.
>
>
>>>If someone could point me to the right place or has any ideas I would
>>>appreciate it very much. Has anyone seen anything like this before or
>>>anything close? Maybe anything that generates sample XML from a schema
>>>would help.
>>>
>>>
>>>
>>>
>>>
>>>
>>Gary,
>>
>>There have been previous appends on this subject in the newsgroup,
>>including folks willing to share code that does this kind of thing. If
>>I have time later, I'll track the notes down...
>>
>>
>
>
>
>


--------------020108080004030103070404
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Gary,<br>
<br>
The note from Tod Rice on 04/28 will be useful.<br>
<br>
<br>
Gary wrote:<br>
<blockquote cite="midce3r0j$6hs$1@eclipse.org" type="cite">
<pre wrap="">Thanks

If you have any references I would appreciate it. Even if you remember a
subject line so I can search myself



"Ed Merks" <a class="moz-txt-link-rfc2396E" href="mailto:merks@ca.ibm.com">&lt;merks@ca.ibm.com&gt;</a> wrote in message
<a class="moz-txt-link-freetext" href="news:ce2rgi$n3h$1@eclipse.org">news:ce2rgi$n3h$1@eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Gary wrote:

</pre>
<blockquote type="cite">
<pre wrap="">Given an XSDSchema object I want to to generate a template XML tree using
all elements defined in the schema. In other words it would be the most
complete document that could be generated from the schema with all
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->optional
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">elements and choices.

In my case I intend to generate an XML model that also contains not one
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->but
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">all of the &lt;choice&gt; elements which means of course that the xml will not
validate against the schema but that's not what I want to do with it. I
just want an XML model that contains all the elements defined in the
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->schema.
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">If someone could point me to the right place or has any ideas I would
appreciate it very much. Has anyone seen anything like this before or
anything close? Maybe anything that generates sample XML from a schema
would help.




</pre>
</blockquote>
<pre wrap="">Gary,

There have been previous appends on this subject in the newsgroup,
including folks willing to share code that does this kind of thing. If
I have time later, I'll track the notes down...
</pre>
</blockquote>
<pre wrap=""><!---->

</pre>
</blockquote>
<br>
</body>
</html>

--------------020108080004030103070404--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Create 'template' xml from xsd model [message #589933 is a reply to message #49526] Tue, 27 July 2004 18:38 Go to previous message
Gary is currently offline GaryFriend
Messages: 8
Registered: July 2009
Junior Member
Great. Could be exactly what I'm looking for and I may be interested in
contributing as well on this one. I'll let Rob Tice know.

Thanks

Gary


"Ed Merks" <merks@ca.ibm.com> wrote in message
news:ce5uit$54m$1@eclipse.org...
Gary,

The note from Tod Rice on 04/28 will be useful.


Gary wrote:

Thanks

If you have any references I would appreciate it. Even if you remember a
subject line so I can search myself



"Ed Merks" <merks@ca.ibm.com> wrote in message
news:ce2rgi$n3h$1@eclipse.org...

Gary wrote:


Given an XSDSchema object I want to to generate a template XML tree using
all elements defined in the schema. In other words it would be the most
complete document that could be generated from the schema with all

optional

elements and choices.

In my case I intend to generate an XML model that also contains not one

but

all of the <choice> elements which means of course that the xml will not
validate against the schema but that's not what I want to do with it. I
just want an XML model that contains all the elements defined in the

schema.

If someone could point me to the right place or has any ideas I would
appreciate it very much. Has anyone seen anything like this before or
anything close? Maybe anything that generates sample XML from a schema
would help.





Gary,

There have been previous appends on this subject in the newsgroup,
including folks willing to share code that does this kind of thing. If
I have time later, I'll track the notes down...
Previous Topic:NullPointerException in XSDECoreBuilder
Next Topic:XSDSimpleFinal has no EXTENSION
Goto Forum:
  


Current Time: Thu Nov 21 20:31:06 GMT 2024

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

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

Back to the top