conversion of a Simple DTD(Document Type Definition)only to a Java Object.thanks in advance for solving it.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   krish_deep
Posted On:   Sunday, January 29, 2006 08:44 AM

<!ELEMENT movies (movie+)>
<!ATTLIST movies version CDATA #REQUIRED >
<!ELEMENT movie (title, cast, director?, producer*)>
<!ELEMENT cast (actor+)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT director (#PCDATA)>
<!ELEMENT producer (#PCDATA)>
<!ELEMENT actor (#PCDATA)>
<!ATTLIST actor headliner (true | false) 'false'>

Re: conversion of a Simple DTD(Document Type Definition)only to a Java Object.thanks in advance for solving it.

Posted By:   srinivas_chinthalapudi  
Posted On:   Tuesday, April 11, 2006 03:29 PM

create an XSD and use Castor to generate Java Objects. its very easy. If you use Oxygen plugin for eclipse, you can convert your present DTD to XSD and then you can convert to Java Objects. I guess even DTD's are supported for Java Objects conversion through Castor. Check.....
About | Sitemap | Contact