[EMAIL PROTECTED] wrote:
> Hi again Werner,
> 
> sorry for the delay.
> 
> [EMAIL PROTECTED] wrote:
>> Before trying anything else, can you please answer the followinf
>> question: as you happen to have an XML schema anyhow, why not generate
>> classes from it and use them (together with the generated descriptor
>> classes), rather than defining a mapping file.
>>
> 
> As i mentioned in my first e-mail, it is mainly because that was the
> first time I used castor.
I see .. ;-).

> In addition i had a strict time constraint
> for creating the desired XML output and i used castor in a
> "learn-while-use"
> basis. I am not working since then on that particular task although i
> have in mind to return and do it in the most appropriate way possible.
> 
> I could give you a much more detailed description of "why"... but i
> believe it would be out of subject.
> 
> So, from what you say i realize that the best way to go when having
> an XML schema is to generate code directly from it. 
Yes, indeed.

> Which means that
> in the way i did, i would have to write the classes appropriately(!)
> according
> to the  XML Schema, in order to achieve the desired output. Is this
> correct?
Yes, somehow. Though please do understand that there is some features
that you will not be able to cover by the means of a mapping file.

> 
>> Having said that, looking at the XML schema (fragment), what ...
>>
>> a) is the target namespace
> 
> targetNamespace="urn:cec.eu.int:taxud:directtax:v3"
> 
>> b) the elementFormDefault/attributeFOrmDefault value ?
>>
> 
> elementFormDefault="qualified" attributeFormDefault="unqualified"
> 
> Kind Regards
> Spiros Papadopoulos
> 
> ************************************************************
> HSBC Bank plc
> Registered Office: 8 Canada Square, London E14 5HQ
> Registered in England - Number 14259
> Authorised and regulated by the Financial Services Authority
> ************************************************************
> 
> 
> -----------------------------------------
> SAVE PAPER - THINK BEFORE YOU PRINT!
> 
> This E-mail is confidential.                      
>                                                   
> It may also be legally privileged. If you are not the addressee you
> may not copy, forward, disclose or use any part of it. If you have
> received this message in error, please delete it and all copies
> from your system and notify the sender immediately by return
> E-mail.                     
>                                                   
> Internet communications cannot be guaranteed to be timely secure,
> error or virus-free. The sender does not accept liability for any
> errors or omissions.
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to