[jdom-interest] BUG: No attributes in new Elements

Peter Franken pfr at gmx.de
Wed Feb 7 10:17:02 PST 2001


I use a DTD-file with attributes like:

<!ATTLIST InitDate
	Default CDATA "{CurrentDate}"

It seems, that only the buildTree() method generates the appropriate
attributes of the element. If I create a new Element, the attributes from the DTD
aren't added. (I cannot find any of the attributes defined in the DTD-file)

I checked this with the today's version of JDOM.

Is there a (quick) fix for that? I can not rebuild the tree from scratch
after adding the elements, since I will use some of the attributes to set
default values for those new elements.

Thanks for any help!


à+ !

Sent through GMX FreeMail - http://www.gmx.net

More information about the jdom-interest mailing list