You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by "Ferry, Jeremy" <Je...@stercomm.com> on 2008/10/24 17:26:07 UTC

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: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


RE: Multiple output files with inst2xsd?

Posted by "Ferry, Jeremy" <Je...@stercomm.com>.
That was the problem - I need to iron out my namespace. Thank you! 

-----Original Message-----
From: Wing Yew Poon [mailto:wing.yew.poon@oracle.com] 
Sent: Friday, October 24, 2008 5:42 PM
To: user@xmlbeans.apache.org
Subject: RE: Multiple output files with inst2xsd?

OK, I did not scrutinize the output xsds I got.
Here's what happened - in my case:
I had 3 xml instances, corresponding to 3 different schemas each with
different target namespaces.
However, within each schema, there are local unqualified elements. So I
got an xsd for each of the 3 target namespaces, plus one with no target
namespace with the unqualified elements from all 3 instances.

Your results are different, because either all your instances have no
namespace or all have the same namespace (and have qualified element
form). If that is indeed the case, and you really want to get a separate
xsd for each instance, then you should loop over each xml file and run
inst2xsd on that file.

-----Original Message-----
From: Ferry, Jeremy [mailto:Jeremy_Ferry@stercomm.com]
Sent: Friday, October 24, 2008 3:19 PM
To: user@xmlbeans.apache.org
Subject: RE: Multiple output files with inst2xsd?

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:wing.yew.poon@oracle.com]
Sent: Friday, October 24, 2008 5:00 PM
To: user@xmlbeans.apache.org
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:Jeremy_Ferry@stercomm.com]
Sent: Friday, October 24, 2008 2:00 PM
To: user@xmlbeans.apache.org
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:cezar.andrei@oracle.com]
Sent: Friday, October 24, 2008 2:21 PM
To: user@xmlbeans.apache.org
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:Jeremy_Ferry@stercomm.com]
> Sent: Friday, October 24, 2008 10:26 AM
> To: user@xmlbeans.apache.org
> 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: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


RE: Multiple output files with inst2xsd?

Posted by Wing Yew Poon <wi...@oracle.com>.
OK, I did not scrutinize the output xsds I got.
Here's what happened - in my case:
I had 3 xml instances, corresponding to 3 different schemas
each with different target namespaces.
However, within each schema, there are local unqualified
elements. So I got an xsd for each of the 3 target namespaces,
plus one with no target namespace with the unqualified elements
from all 3 instances.

Your results are different, because either all your instances
have no namespace or all have the same namespace (and have
qualified element form). If that is indeed the case, and
you really want to get a separate xsd for each instance,
then you should loop over each xml file and run inst2xsd
on that file.

-----Original Message-----
From: Ferry, Jeremy [mailto:Jeremy_Ferry@stercomm.com] 
Sent: Friday, October 24, 2008 3:19 PM
To: user@xmlbeans.apache.org
Subject: RE: Multiple output files with inst2xsd?

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:wing.yew.poon@oracle.com] 
Sent: Friday, October 24, 2008 5:00 PM
To: user@xmlbeans.apache.org
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:Jeremy_Ferry@stercomm.com]
Sent: Friday, October 24, 2008 2:00 PM
To: user@xmlbeans.apache.org
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:cezar.andrei@oracle.com]
Sent: Friday, October 24, 2008 2:21 PM
To: user@xmlbeans.apache.org
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:Jeremy_Ferry@stercomm.com]
> Sent: Friday, October 24, 2008 10:26 AM
> To: user@xmlbeans.apache.org
> 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: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


RE: Multiple output files with inst2xsd?

Posted by "Ferry, Jeremy" <Je...@stercomm.com>.
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:wing.yew.poon@oracle.com] 
Sent: Friday, October 24, 2008 5:00 PM
To: user@xmlbeans.apache.org
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:Jeremy_Ferry@stercomm.com]
Sent: Friday, October 24, 2008 2:00 PM
To: user@xmlbeans.apache.org
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:cezar.andrei@oracle.com]
Sent: Friday, October 24, 2008 2:21 PM
To: user@xmlbeans.apache.org
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:Jeremy_Ferry@stercomm.com]
> Sent: Friday, October 24, 2008 10:26 AM
> To: user@xmlbeans.apache.org
> 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: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


RE: Multiple output files with inst2xsd?

Posted by Wing Yew Poon <wi...@oracle.com>.
OK, I didn't actually do

inst2xsd file0.xml file1.xml file2.xml

when I first tried it; I did

inst2xsd *.xml

and let the shell perform the wildcard expansion;
and I didn't count how many xml files I had in the directory.
If I actually did

inst2xsd file0.xml file1.xml file2.xml

I get 4 files; the first 3 correspond to the 3 instances (but
not necessarily in that order), and the 4th, schema3.xml,
correspond to a schema for all 3 instances together.
Nevertheless, you do get xsds for each instance (together
with one for all instances combined).

-----Original Message-----
From: Wing Yew Poon [mailto:wing.yew.poon@oracle.com] 
Sent: Friday, October 24, 2008 3:00 PM
To: user@xmlbeans.apache.org
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:Jeremy_Ferry@stercomm.com] 
Sent: Friday, October 24, 2008 2:00 PM
To: user@xmlbeans.apache.org
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:cezar.andrei@oracle.com] 
Sent: Friday, October 24, 2008 2:21 PM
To: user@xmlbeans.apache.org
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:Jeremy_Ferry@stercomm.com]
> Sent: Friday, October 24, 2008 10:26 AM
> To: user@xmlbeans.apache.org
> 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: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


RE: Multiple output files with inst2xsd?

Posted by Wing Yew Poon <wi...@oracle.com>.
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:Jeremy_Ferry@stercomm.com] 
Sent: Friday, October 24, 2008 2:00 PM
To: user@xmlbeans.apache.org
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:cezar.andrei@oracle.com] 
Sent: Friday, October 24, 2008 2:21 PM
To: user@xmlbeans.apache.org
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:Jeremy_Ferry@stercomm.com]
> Sent: Friday, October 24, 2008 10:26 AM
> To: user@xmlbeans.apache.org
> 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: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


RE: Multiple output files with inst2xsd?

Posted by "Ferry, Jeremy" <Je...@stercomm.com>.
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:cezar.andrei@oracle.com] 
Sent: Friday, October 24, 2008 2:21 PM
To: user@xmlbeans.apache.org
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:Jeremy_Ferry@stercomm.com]
> Sent: Friday, October 24, 2008 10:26 AM
> To: user@xmlbeans.apache.org
> 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: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


RE: Multiple output files with inst2xsd?

Posted by Cezar Andrei <ce...@oracle.com>.
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:Jeremy_Ferry@stercomm.com]
> Sent: Friday, October 24, 2008 10:26 AM
> To: user@xmlbeans.apache.org
> 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: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org