Hi,

I want to get an element by TagName using:

        DOMElement.getElementsByTagName(String name)

my problem is:  if I use

        Element root = Document.getRootElement();

        I can only cast root to "DefaulElement",
        not "DomElement"(casting exception because "DefaultElement" is the default
implementantion of Element in dom4j)

        because of this, I can not use root.getElementsByTagName("...");


Can anyone tell me how to solve the problem?


thanks,
Amber


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

Reply via email to