You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/12/23 20:10:46 UTC

DO NOT REPLY [Bug 31136] - [configuration] Access to top level tag in XMLConfiguration

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31136>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31136


oliver.heger@t-online.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From oliver.heger@t-online.de  2004-12-23 20:10 -------
Methods getRootElementName() and setRootElementName() have been added to
XMLConfiguration.

For new XML documents (i.e. if the configuration was newly created and not
loaded from a file) it is possible to set the name of the root element. However
if the configuration was loaded from an XML document, this is not possible
because I did not find a simple way to change a node's tag name using plain DOM.
In this case an attempt to change the root name will throw an
UnsupportedOperationException. This behavior is also explained in the javadocs.

I am marking this as fixed. If somebody needs a better solution, please reopen.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org