OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Create XML with DTD in Java



Dear Asbell,

I am not sure about your solution. Could you please give me a more detailed
explanation?

I can use DOM to create an XML file from scratch. That means data can be
organized into a XML structure with the APIs in DOM. I can insert more data
into the XML with DOM too.

Right now, I need to put attributes of tags into an XML file. I don't know
how to do that. So I think there must be a solution that can create an XML
file according to DTD. But I didn't find it.

Could you give me some ideas?

Thanks,
Li Bing

-----Original Message-----
From: Jonathan Asbell [mailto:jasbell@i-2000.com]
Sent: Thursday, April 19, 2001 5:01 AM
To: Bing.Li@asu.edu
Subject: Re: Create XML with DTD in Java


refer to the dtd in the <!DOCTYPE> declaration, and if your parser requires
turn valdation to on or true.

----- Original Message -----
From: <Bing.Li@asu.edu>
To: <xml-dev@lists.xml.org>
Sent: Thursday, April 19, 2001 4:27 AM
Subject: Create XML with DTD in Java


> Dear all,
>
> I can create an XML file from scratch with Java. But now I need to create
an
> XML that complies with a DTD. But I can't find this kind of Java
> sample. Anyone can give me some help?
>
> Thanks,
> Li Bing
>
>
>
>                  _________________
>                 |  How are you?  |_____    __
>                 |  I am Li Bing. |     |__|  |_________
>                 |________________| OK? |::|  | Need   /
>                 |                \.____|::|__| Help? <
>                 |                      \::/  \._______\
>    /\**/\       |   ___________________________________
>   ( o_o  )_     |__|http://www.public.asu.edu/~libing /
>    (u--u   \_)  |  |bing.li@asu.edu, 480-829-8492(H) /
>     (||___   )==\  |480-965-9038(L)480-965-1746(O)   \
>   ,dP"/b/=( /P"/b\ |__________________________________\
>   |8 || 8\=== || 8
>   `b,  ,P  `b,  ,P
>     """`     """`
>
>
>
> ------------------------------------------------------------------
> The xml-dev list is sponsored by XML.org, an initiative of OASIS
> <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To unsubscribe from this elist send a message with the single word
> "unsubscribe" in the body to: xml-dev-request@lists.xml.org
>