From: SourceForge.net <no...@so...> - 2011-04-20 11:05:41
|
Bugs item #3290264, was opened at 2011-04-20 12:05 Message generated for change (Tracker Item Submitted) made by aefaradien You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377768&aid=3290264&group_id=23187 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: aefaradien (aefaradien) Assigned to: Nobody/Anonymous (nobody) Summary: assertXpathsEqual() with attribute causes DOMException Initial Comment: Java 1.6. XMLUnit 1.3. XMLAssert.assertXpathsEqual("/foo/Bar/@a", "/foo/Bar", "<foo><Bar a=\"1\" /></foo>"); Exception in thread "main" org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted. at org.apache.xerces.dom.ParentNode.internalInsertBefore(Unknown Source) at org.apache.xerces.dom.ParentNode.insertBefore(Unknown Source) at org.apache.xerces.dom.NodeImpl.appendChild(Unknown Source) at org.custommonkey.xmlunit.XMLAssert.asXpathResultDocument(XMLAssert.java:1117) at org.custommonkey.xmlunit.XMLAssert.assertXpathEquality(XMLAssert.java:576) at org.custommonkey.xmlunit.XMLAssert.assertXpathsEqual(XMLAssert.java:453) at org.custommonkey.xmlunit.XMLAssert.assertXpathsEqual(XMLAssert.java:368) at org.custommonkey.xmlunit.XMLAssert.assertXpathsEqual(XMLAssert.java:397) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377768&aid=3290264&group_id=23187 |