Re: Creating an XML document from DTD in Java
Narasimha Rao Tnv <[email protected]> Mon, 31 Mar 2003 09:17:01 +0800
| Newsgroups | gmane.comp.java.sun.xml.general |
|---|---|
| Message-ID | <[email protected]> |
Hi
You may try with this jar file........
<<jaxp.jar>>
Cheers
Rao
> -----Original Message-----
> From: Gayathri Sundarachar [SMTP:[email protected]]
> Sent: Saturday, March 29, 2003 6:09 PM
> To: [email protected]
> Subject: Re: Creating an XML document from DTD in Java
>
> Hi,
>
> Thanx a lot for the timely help. I was under the mis
> understanding of reading DTD during run time and
> generate the XML document.
>
> Now I understand that, we can not directly generate
> the XML document from DTD during runtime. We have to
> generate XML document from DTD using some tools like
> XML spy and then read that XML to generate the
> required XML file.
>
> Thanks for the great help!!! I am very thankful for
> the kind response.
>
> But I searched java.sun.com for JAXB.JAR. I found only
> documentation and specification...I couldnt find the
> JAXB.JAR file.
> If u know where it is, will u pls let me know.
>
> Thanx a lot for the help!
>
> Regards,
> Gayathri.
>
>
> --- Ray Tayek <[email protected]> wrote:
> > 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.
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.com
>
> -----------------------------------------------------
> 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.
jaxp.jar
(application/octet-stream, 27.7 KB) - not displayed