Hi Jun

> Thanks a lot. I downloaded dom4j, it does allow me to create a new
document
> from scratch. However, based on the given sample code, I still need to
hard
> code the element name, attribute name, ... how can I build the xml DOM
tree
> based on a given DTD file? You have any sample code indicating this
feature
> of dom4j?

So you want to create an empty XML document based on a DTD?
This feature may get added at some point to dom4j but its not there yet.

I think IBM Alphaworks site has something like that I seem to remember. Try
this

http://www.alphaworks.ibm.com/aw.nsf/techmain/xmlgenerator

James


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


---------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to