Re: *****SPAM*****Re: Generate Java class from xml?

2003-12-17 Thread John Smart
There's also XMLBeans (http://xml.apache.org/xmlbeans/) , which, unlike 
Castor, works with JDK 1.4...

Martin Gainty wrote:

Castor (http://www.castor.org) which generate the java classes with marshall
and unmarshall methods, but it is not finished, doesn't care to namespaces,
owns severals bugs ...
The second one is Xml Spy 5.0, it generate classes from an xsd file which
wrap on the Dom Tree, but all facets are not implemented as enumeration ...
but I think that a better version will come soon. Generates JAXP compliant
Java Beans
http://www.altova.com/features_java.html
-Martin

- Original Message - 
From: Vicky [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 2:01 PM
Subject: Generate Java class from xml?

 

Does anyone have an idea of how i can generate .java file from xml file?
   

Tools like jakrata digester, JOX are there but both of them are useful in
populating java beans from xml. My requirement is to generate .java file
from .xml with getters and setters methods for xml elements/attributes. I
also tried JAXB. But JAXB generates bunch of files and most of them are
interfaces, which is not going to work for me.
 

For e.g. i have following xml file and i want to generate Address.java
   

file with getters/setters. Any ideas?
 

?xml version='1.0' encoding='UTF-8' ?
Address
   FirstName type=String/
   PoBox type=int/
..
/Address
Thanks,
Vicky


-
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing
   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Positional problem?

2003-12-03 Thread John Smart
We did something like that using an extra field (focus) to know where 
you are and some javascript to place the focus at the right place when 
the page is redisplayed.

Bjørn T Johansen wrote:

I have a number of jsp pages that are longer than one page and if I am
at the bottom of a page and submit the page, I get back at the top of
the page. Is there a way to get back, after the submit, to the place you
were before the submit?
Regards,

BTJ

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]