It does not work that way for me. I did specify multiple xml files and I
got a single xsd output file called schema0.xsd. Here is the transcript
of exactly what I'm doing...
C:\workspaces\head\xmlbeans\xsd>dir
Directory of C:\workspaces\head\xmlbeans\xsd
10/24/2008 05:10 PM <DIR> .
10/24/2008 05:10 PM <DIR> ..
10/09/2008 10:30 AM 151 credential.xml
10/24/2008 09:37 AM 112 ObjectRequest.xml
10/24/2008 09:44 AM 379 UserResponse.xml
3 File(s) 642 bytes
2 Dir(s) 28,415,610,880 bytes free
C:\workspaces\head\xmlbeans\xsd>inst2xsd credential.xml
ObjectRequest.xml UserResponse.xml
C:\workspaces\head\xmlbeans\xsd>dir
Directory of C:\workspaces\head\xmlbeans\xsd
10/24/2008 05:11 PM <DIR> .
10/24/2008 05:11 PM <DIR> ..
10/09/2008 10:30 AM 151 credential.xml
10/24/2008 09:37 AM 112 ObjectRequest.xml
10/24/2008 05:11 PM 2,579 schema0.xsd
10/24/2008 09:44 AM 379 UserResponse.xml
4 File(s) 3,221 bytes
2 Dir(s) 28,415,606,784 bytes free
As you can see, I get a single xsd called schema0.xsd. Maybe this is a
bug?
-----Original Message-----
From: Wing Yew Poon [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2008 5:00 PM
To: [email protected]
Subject: RE: Multiple output files with inst2xsd?
Jeremy,
I don't understand why you have a problem.
As Cezar wrote, if you do
inst2xsd file0.xml file1.xml file2.xml
you get
schema0.xsd
schema1.xsd
schema2.xsd
[Btw, you can specify
-outDir [dir] - Directory for output files. Default is '.'
-outPrefix [file_name_prefix] - Prefix for output file names.
Default is 'schema'
]
You don't get a single xsd.
It works for me.
- Wing Yew
-----Original Message-----
From: Ferry, Jeremy [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2008 2:00 PM
To: [email protected]
Subject: RE: Multiple output files with inst2xsd?
Running it on multiple xml files isn't the problem, I can do that just
fine. The problem is that it combines the output into a single xsd file.
I need one xsd output file for each xml input file. There doesn't appear
to be an option for this behavior but I thought I'd ask before I look
into a more radical solution like a for-loop in my ant build file.
Thanks,
Jeremy
-----Original Message-----
From: Cezar Andrei [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2008 2:21 PM
To: [email protected]
Subject: RE: Multiple output files with inst2xsd?
You can run inst2xsd on multiple xml files. See inst2xsd -h for usage.
int2xsd file1.xml file2.xml
Cezar
> -----Original Message-----
> From: Ferry, Jeremy [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 24, 2008 10:26 AM
> To: [email protected]
> Subject: Multiple output files with inst2xsd?
>
> I'm running inst2xsd on a directory full of xml but the output is a
> single xsd file that combines all my xml elements. Is there a way to
> tell it to output one xsd for every xml? Or do I need to run inst2xsd
> on each individual xml file?
>
> Jeremy Ferry
> Sr. Software Engineer
> Sterling Commerce, an AT&T company
> Eden Prairie, MN
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]