Thanks for confirming this! We do indeed use several imported schemas.
I need to solve this issue because the client (BEA Weblogic Portal) is not capable to consume the xml's with so many unnecessary namespace declarations.
We could solve it by remove the namespace declarations in the generated files, but that's not what I want. It would then be neccessary to do the same work every time I generate new code.
So.. The Source Generator needs some tuning.. Any develoeper willing to give me kick-start/help !? :o)
Cheers,
Are T. Tysnes
-----Original Message-----
From: Fredo Corleone
To: [email protected]
Sent: 16.05.05 04:10
Subject: RE: [castor-dev][XML] too many namespace declarations in element attributes
Its been my observation that Castor creates xml with several unnecessary
namespace declarations when the schema includes/imports schemas from
several
different files. I haven't had the time or need to pursue this further
because its not breaking anything..
>From: "Tysnes Are Thobias" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: <[email protected]>
>Subject: [castor-dev][XML] too many namespace declarations in element
>attributes
>Date: Sat, 14 May 2005 14:34:50 +0200
>
>
>Hello Castor Developers!
>
>Would be happy if one developer with knowledge of Castor would help me
>solve this issue which I suspect is a feature og the XML Source
Generator
>
>http://archive.codehaus.org/castor/user/msg00460.html
>
>The client for our Web Services is BEA WebLogic Portal and they tell me
>that the Portal uses 1GB of memory to parse a response containing 6000
>lines.. most of the lines are attributes with new namespace
declarations
>shown in the test-example above.
>
>I haven't confirmed this myself but anyways I have to clean the
response
>XML. I don't see any reason for all these namespace declarations on the
>attributes.
>
>I will be willing to spend some time solving this issue and fix the
Source
>Generator (if neede).
>
>So.. It would be nice if someone could confirm this to be an issue with
the
>Sorce Generator. Nothing would make me more happy than someone saying
I'm
>using the tools in a wrong way or if there is some errors in my schema
:o)
>
>Cheers,
>Are T. Tysnes
Title: RE: [castor-dev][XML] too many namespace declarations in element attributes

