From: SourceForge.net <no...@so...> - 2011-04-20 12:43:16
|
Bugs item #3290264, was opened at 2011-04-20 13:05 Message generated for change (Settings changed) made by bodewig 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: Java 1.3 >Status: Pending >Resolution: Fixed 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) ---------------------------------------------------------------------- >Comment By: Stefan Bodewig (bodewig) Date: 2011-04-20 14:43 Message: fixed in svn with revision 494 http://xmlunit.svn.sourceforge.net/viewvc/xmlunit?view=revision&revision=494 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377768&aid=3290264&group_id=23187 |