Commits

Anonymous committed a857675

XmlConfigurationProvider fails to parse result because Node.equals fails

o changed comparison to
if (resultElement.getParentNode().equals(element) || resultElement.getParentNode().getNodeName().equals(element.getNodeName())) {

Issue Number: XW-481
Submitted by: Ian Pojman

git-svn-id: http://svn.opensymphony.com/svn/xwork/branches/2.0@1364e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 3a65570
  • Branches 2.0, xwork_2_0_7

Comments (0)

Files changed (1)

src/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProvider.java

         for (int i = 0; i < resultEls.getLength(); i++) {
             Element resultElement = (Element) resultEls.item(i);
 
-            if (resultElement.getParentNode().equals(element)) {
+            if (resultElement.getParentNode().equals(element) || resultElement.getParentNode().getNodeName().equals(element.getNodeName())) {
                 String resultName = resultElement.getAttribute("name");
                 String resultType = resultElement.getAttribute("type");