Re: Creating an XML document from DTD in Java

Ray Tayek <[email protected]> Fri, 28 Mar 2003 22:58:18 -0800
Newsgroups gmane.comp.java.sun.xml.general
Message-ID <[email protected]>
At 07:22 PM 3/28/03 -0800, you wrote:
>...
>
>I have a DTD file. I need to generate XML document
>from it using java code. I have to use DTD as a
>template to generate my XML document.

xml spy generates sample xml files from dtd's and schemas. maybe look into
that.


>After going through WEB sites, I understtod that, we
>have to user Java API JAXB for my requirement. But I
>could not find JAXB.jar anywhere.

jaxb is for serializing and deserializing from java objects to xml files
with validation. but it won't create an xml file from a dtd or schema.


>I need to know the following inforamtion ....
>1. Is my understanding of using JAXB for my
>requirement is correct?

no, but you may find it useful.

>2. Where can I get JAXB.jar?

java.sun.com


>3. What are the steps to create XML document from a
>DTD in Java?

don't know.

thanks

---
ray tayek http://tayek.com/ actively seeking mentoring or telecommuting work
vice chair orange county java users group http://www.ocjug.org/
hate spam? http://samspade.org/ssw/

-----------------------------------------------------
xml-interest: A list for discussing XML technologies in the Java Platform.
To post, mailto:[email protected]
Archives at: http://archives.java.sun.com/xml-interest.html
To unsubscribe, mailto:[email protected] the following message;
signoff xml-interest.