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.
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, i! s a sample :
**************************************************************************************
**************************************************************************************
**************************************************************************************
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="springappController" class="SpringappController">
<property name="productManager">
<ref bean="prodMan"/>
</property>
</bean>
<bean id="priceIncreaseForm" class="PriceIncreaseFormController">
<property name="sessionForm"><value>true</value></property>
<property name="commandName"><value>priceIncrease</value></property>
<property name="commandClass"><value>bus.PriceIncrease</value></property>
<property name="validator"><ref bean="priceIncreaseValidator"/></property>
<property name="formView"><value>priceincrease</value></property>
<property name="successView"><value>hello.htm</value></property>
<property name="productManager">
<ref bean="prodMan"/>
</property>
</bean>
<bean id="prodMan" class="bus.ProductManager">
<property name="products">
<list>
<ref bean="product1"/>
<ref bean="product2"/>
</list>
</property>
</bean>
<bean id="product1" class="bus.Product">
<property name="description"><value>Lamp</value></property>
<property name="price"><value>5.75</value></property>
</bean>
<bean id="product2" class="bus.Product">
<property name="description"><value>Table</value></property>
<property name="price"><value>75.25</value></property>
</bean>
</beans>
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.
schema.xsd
Description: schema.xsd
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
