I am getting MultipleWidgetsFoundException for the following xml file
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<typeLibraryType xmlns:ns2="http://www.abcd.com/soaframework/common/config" libraryNamespace="http://www.abcd.com/marketplace/affiliates/v2/types" category="COMMON" version="2.0.0" libraryName="TestTypeLibrary">
<ns2:type version="1.0.0" java-type-name="com.abcd.marketplace.affiliates.v2.types.GetVersionResponse" xml-type-name="GetVersionResponse"/>
<ns2:type version="1.0.0" java-type-name="com.abcd.marketplace.affiliates.v2.types.GetVersionRequest" xml-type-name="GetVersionRequest"/>
</typeLibraryType>
I am trying to assert the text in <typeLibraryType><ns2:type xml-type-name="GetVersionResponse"> and <typeLibraryType><ns2:type xml-type-name="GetVersionRequest">. I getting the above mentioned exception because there are two items with the name <ns2:type xml-type-name>
How do i solve this situation.
Thanks!