Hi,

I'm trying to change the name of a element using setName() but
I get following message:

    The name and namespace of this Element cannot be changed

I've checked the DOM4J code and as far as I can see it's not
possible to change the name of an element:

    DocumentFactory.createElement
        => creates tree.DefaultElement

    tree.DefaultElement
        => extends tree.AbstractElement

    tree.AbstractElement
        => throw new UnsupportedOperationException(
                "The name and namespace of this Element cannot be
changed" );

What am I doing wrong? Or is it really not possible to change the
element name?

Thanx for any advice, Silvain



_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to