Return-Path: Delivered-To: apmail-xml-xmlbeans-user-archive@www.apache.org Received: (qmail 52612 invoked from network); 12 Jan 2004 16:39:08 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 12 Jan 2004 16:39:08 -0000 Received: (qmail 78104 invoked by uid 500); 12 Jan 2004 16:39:01 -0000 Delivered-To: apmail-xml-xmlbeans-user-archive@xml.apache.org Received: (qmail 78093 invoked by uid 500); 12 Jan 2004 16:39:01 -0000 Mailing-List: contact xmlbeans-user-help@xml.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: xmlbeans-user@xml.apache.org Delivered-To: mailing list xmlbeans-user@xml.apache.org Received: (qmail 78076 invoked from network); 12 Jan 2004 16:39:00 -0000 Date: Mon, 12 Jan 2004 08:39:00 -0800 From: Toby H Ferguson Subject: Re: Removing the Namespace from each Tag In-reply-to: <4B2B4C417991364996F035E1EE39E2E10850DC@uskiex01.amer.bea.com> To: xmlbeans-user@xml.apache.org Message-id: <4002CDA4.8040906@sun.com> MIME-version: 1.0 Content-type: multipart/alternative; boundary=------------050003000908050101020205 X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) References: <4B2B4C417991364996F035E1EE39E2E10850DC@uskiex01.amer.bea.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --------------050003000908050101020205 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Took me a while (I had to look at SchemaCompiler source to find it), the command line you need is: Usage: scomp [opts] [dirs]* [schema.xsd]* [service.wsdl]* [config.xsdconfig]* Toby P.S. Why did I look at the source instead of just running scomp with no arguments? I don't know - I guess when I ran scomp with -help, --help, -h and -? and got no help I wasn't expecting scomp with no arguments to give me any help! So this is a data point that there's at least one user out there who expects help to require an option . David Remy wrote: >>But with XMLBeans when i'm doing the schema it makes me put the >>namespace in as if I don't it puts it in noNameSpace for the package. >> >> > >Lance, are you wanting to do this because of the package name? If so there is another approach which is to use the xsdconfig to map from nonamespace to another package name. To do this just create a file (in the same directory as the schema probably) ending in .xsdconfig and put something like the following in the file: > > > > > > > > com.myPackage.foo > > > > >Not sure if that's what your looking for but just in case. > >rem > > > >- --------------------------------------------------------------------- >To unsubscribe, e-mail: xmlbeans-user-unsubscribe@xml.apache.org >For additional commands, e-mail: xmlbeans-user-help@xml.apache.org >Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/ > > > --------------050003000908050101020205 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Took me a while (I had to look at SchemaCompiler source to find it), the command line you need is:

Usage: scomp [opts] [dirs]* [schema.xsd]* [service.wsdl]* [config.xsdconfig]*

Toby
P.S.
Why did I look at the source instead of just running scomp with no arguments? I don't know - I guess when I ran scomp with -help, --help, -h and -? and got no help I wasn't expecting scomp with no arguments to give me any help! So this is a data point that there's at least one user out there who expects help to require an option .

David Remy wrote:
But with XMLBeans when i'm doing the schema it makes me put the
namespace in as if I don't it puts it in noNameSpace for the package. 
    

Lance, are you wanting to do this because of the package name?  If so there is another approach which is to use the xsdconfig to map from nonamespace to another package name.  To do this just create a file (in the same directory as the schema probably) ending in .xsdconfig and put something like the following in the file:


<xb:config xmlns:xb="http://www.bea.com/2002/09/xbean/config">

    <!-- Use the "namespace" element to map a namespace to the Java package
        name that should be generated. -->
        
    <xb:namespace uri="">
        <xb:package>com.myPackage.foo</xb:package>
    </xb:namespace>
    
</xb:config>

Not sure if that's what your looking for but just in case.

rem



- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/

  
--------------050003000908050101020205--