[castor-dev] default namespace specification

2004-01-12 Thread Rich Trevor
Hello, Is there a way to specify a default XML Schema namespace using the Marshaller? Both of the following statements: marshaller.setNamespaceMapping("", "http://www.foo.org/test";); marshaller.setNamespaceMapping(null, "http://www.foo.org/test";); produce the following: xmlns="" in the root

[castor-dev] Default Namespace

2003-11-10 Thread Rainer Mueller
Hi, we have a problem with the default namespace using Castor 0.9.5.2 I tried both statements marshaller.setNamespaceMapping("", "http://www.vpbank.com/ebanking";); marshaller.setNamespaceMapping(null, "http://www.vpbank.com/ebanking";); but it generates elements with de but the xmlns=""

Re: [castor-dev] Default Namespace

2003-11-05 Thread Keith Visco
Hi Ranier, To use namespaces in a mapping file you need to do the following: 1. declare the namespace, with an associated prefix - the prefix can be anything, it's just used within the mapping file to associate the namespace with the proper fields. 2. For all non root elements/attributes

[castor-dev] Default Namespace

2003-11-05 Thread Rainer Mueller
Hello, we have a problem with the default namespace using Castor 0.9.5.2 I tried both statements marshaller.setNamespaceMapping("", "http://www.vpbank.com/ebanking";); marshaller.setNamespaceMapping(null, "http://www.vpbank.com/ebanking";); but it generates elements with de but the xmln

Re: [castor-dev] Default namespace not used for built-in data types?

2002-05-02 Thread Arnaud Blandin
Hi Florian > > Humm, this is not really a good design to bound the XML > > Schema namespace > > to the default namespace and to a prefix, anyway it is allowed so it > > should work. > Oh I agree... as I said I have no control over the schema, other than > give my feedback to the author of the sch

Re: [castor-dev] Default namespace not used for built-in data types?

2002-05-01 Thread Arnaud Blandin
Hi Florian, > > I have been using Castor SourceGenerator for a while now and have find it a > great tool. Thanks ;) > > However I have encountered the following problem when using SourceGenerator > to > generate code from the following schema (BTW: I have no control over the > schema > I *mus

[castor-dev] Default namespace not used for built-in data types?

2002-05-01 Thread Kirchhoff, Florian
Hi. I have been using Castor SourceGenerator for a while now and have find it a great tool. However I have encountered the following problem when using SourceGenerator to generate code from the following schema (BTW: I have no control over the schema I *must* use it as is): http://www.w3.org/20

[castor-dev] Default namespace not used for built-in data types?

2002-05-01 Thread Kirchhoff, Florian
Hi. I have been using Castor SourceGenerator for a while now and have find it a great tool. However I have encountered the following problem when using SourceGenerator to generate code from the following schema (BTW: I have no control over the schema I *must* use it as is): http://www.w3.org/20