Author |
Message
|
RocknRambo |
Posted: Tue Nov 02, 2004 12:44 pm Post subject: .xsd adn .xml |
|
|
Partisan
Joined: 24 Sep 2003 Posts: 355
|
can we generate a .xsd from.xml...??
I know we can do the other way...like a .xml from a.xsd
-RR |
|
Back to top |
|
 |
UDFlyers |
Posted: Tue Nov 02, 2004 2:20 pm Post subject: |
|
|
Newbie
Joined: 02 Nov 2004 Posts: 3 Location: Chicago, IL
|
Some XML tools can do that for you.
I know XML Spy can. Go to -> DTD/Schema -> Generate XSD -> <then you have to choose your data format -I.e. XML Data). This generates an XSD from your sample xml file.
If you don't have XML Spy, and/or can't afford the liciences, I know there are some XML free ware tools that do similar stuff (I.e. www.xmlcooktop.com is one that I've used in the past)
Good luck |
|
Back to top |
|
 |
kirani |
Posted: Tue Nov 02, 2004 3:05 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
One of our developer wrote a Perl Script to generate XML file from XSD schema. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
Gralgrathor |
Posted: Wed Oct 06, 2010 7:29 am Post subject: |
|
|
Master
Joined: 23 Jul 2009 Posts: 297
|
kirani wrote: |
One of our developer wrote a Perl Script to generate XML file from XSD schema. |
Do you know if his code is available somewhere? I've been having trouble making XMLSpy generate complete sample messages. If I can't find some suitable tooling, I'll have to write my own. And while I do love re-inventing the wheel, it can be quite tiresome at times.
Gr |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Oct 06, 2010 7:38 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Broker toolkit can do this, from the XML tools that come with it as either part of the eclipse substrate or the Rational components on top of that.
Right click on an XSD file, select "Generate" and choose the XML File option.
The WebServices Test client that can be invoked from the Java perspective can also do this in a nice UI, and the Message Flow Tester can do this as well to a limited extent. |
|
Back to top |
|
 |
Gralgrathor |
Posted: Wed Oct 06, 2010 9:00 am Post subject: |
|
|
Master
Joined: 23 Jul 2009 Posts: 297
|
mqjeff wrote: |
Broker toolkit can do this |
I *promise* I'll start reading manuals from now on. Thanks! |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Oct 06, 2010 10:17 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Moved to appropriate forum. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
|