Hi.
 
Happy new Year.
 
Excuse me for being late in reply!
 
I wrote the needed classes by myself, so the big problem got solved, but i got some
  little problems !!!
1 :
   Some of the attributes in original xml file are written inline with the tag like:
                <property name="name1">
     but in marshaled xml, they are written as follows :
               <property><name>name1</name></property>
     How can i change this output, so that it looks like the original? (I used the
       mapping file, but it needs that all of the properties be written in the mapping file,
       not just some of them.
    
2 :
   I want the comments written in the original file (tags started with "<!--" and
       ended with "-->") to be wriiten in the output file. Is there any tricks to do that?

3 :
   The castor converts the keyword "class" to "clazz" in unmarshalling and marshalling, so
       the final xml file can't be used by other applications, because of the unknown tag
       "clazz".
       For example in the following definition :
          <bean class="someClass">...
       castor will generate the field clazz and in marshalling, it writes :
         <bean><clazz>someClass</clazz></bean>)
       How castor behaviour can be changed to satisfy this problem?
4 :
   Some of the attributes are written without any tag in my xml files like :
      <props>
        <prop key ="keyVal1">this is prop 1</prop>
        <prop>...</prop>
        <prop>...
          ...
       </props> 
      I put two String fields for class "prop" : String _key
                                                              String _content
     
      but when castor unmarshals it, it raises the following error :
       
             Illegal Text data found as child of: prop..."
      How this problem can be solved?

The Last :
     The marshaller, just writes all of the data on th output file without any formatting.
     How can i format it's output?
    
Thanx again for your help.
 
Sincerely,
 
Narsis.

Werner Guttmann <[EMAIL PROTECTED]> wrote:

Narsis,

can you please provide us with e.g. a stack trace that shows the problems
you are experiencing, a code fragment that highlights what you are trying to
do, etc.

Without any of this information, it is simply impossible to help you.

Regards
Werner

>
> Hello.
>
> Yes, it's castor problem.
>
> I used castor sourcecodegenerator to generate necessary java files from my
> schema.
>
> Then i tried to use castor to read a xml file(written using the schema)
> and get off it's beans, but i reached
>
> some errors. I think this is because, source generator does not generate
> correct sources for
>
> the schema(It doesn't generate vector, for example for properties of a
> bean).
>
> The schema i used is attached to this mail.
&! gt;
> Sincerely,
>
> Narsis.
>
>
> Werner Guttmann <[EMAIL PROTECTED]>wrote: Narsis,
>
> can you just rephrase your question, as it is very hard to tell what
> problems you are having, or whether you suffer from a more general lack of
> information. I.e. are your questions specific to Castor or not ?
>
> Regards
> Werner
>
> --Original Message Text---
> From: Narsis
> Date: Sun, 19 Dec 2004 05:53:49 -0800 (PST)
>
> Hello.
> I have a question, but i didn't find anyone to ask from.
> I want to write a visual java program that allow the user to load a xml
> file,
> then the program shows the beans defined in the file in a JTree, user
> selects
> one from JTree and see it's attributes and properties and if want, changes
> any.
> At last, the changes will be saved in the original file.
> The xml file is! a "Spring XML definition" and the following, is a sample :
>
**************************************************************************************
>
**************************************************************************************
>
**************************************************************************************
>
> > "http://www.springframework.org/dtd/spring-beans.dtd">
>
>
>
>
>

>

>
> true
> priceIncrease
> bus.PriceIncrease
>
> priceincrease
> hello.htm
>
>
>

>

>
>
>
>
>
>

>

>

>
> Lamp
> 5.75
>

>
> Table
> 75.25
>

>

>
> Would you please help me where i should search?
>
> Sincerely,
>
> Narsis.
>
> "Andrea A. A. Gariboldi" <[EMAIL PROTECTED]>wrote:
>
> Hi all,
> this mail is to announce the version 1.2 of CastorExtenion for Oracle
> JDeveloper 10g.
>
> It is a basic extension to automatically generate java classes from
> .xsd, in a jdeveloper project.
> Since this version we support all castor config files in the project
> context,
> actually only via file (no GUI) but i found it pretty usefull.
>
> All your comments, questions, enhancement requests, are appriciated.
>
> You can find more info on the readme page:
> http://www.e-force.it/oracle/jdev/castor/readme.html
>
> regards,
> Andrea Gariboldi
>
>
>
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-user
>
>
>
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-user
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Send a seasonal email greeting and help others. Do good.

--
Psssst! Mit GMX Handyrechnung senken: http://www.gmx.net/de/go/mail
100 FreeSMS/Monat (GMX TopMail), 50 (GMX ProMail), 10 (GMX FreeMail)



-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user


Do you Yahoo!?
All your favorites on one personal page � Try My Yahoo!
----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to