title: Type mismatch for 'Value Selector' operator with Dataweave
body: <p>I migrated a data mapper (which tranforms a xml to POJO) to a dataweave. But when executing the flow, I am seeing the below exception</p>
  
  <p>Type mismatch for 'Value Selector' operator
       found :string, :name
    required :datetime, :name or
    required :localdatetime, :name or
    required :object, :name or
    required :time, :name or
    required :array, :name or
    required :date, :name or
    required :localtime, :name or
    required :period, :name.</p>
  
  <p>Input (Payload) is a XML like below :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;RESPONSE_GROUP MISMOVersionID="2.4"&gt;
      &lt;RESPONDING_PARTY/&gt;
      &lt;RESPOND_TO_PARTY/&gt;
      &lt;RESPONSE ResponseDateTime="2016-04-21T09:03:44-05:00"&gt;
          &lt;KEY _Name="LSF.FloodRequestID" _Value="1604008485"/&gt;
          &lt;KEY _Name="LSF.MAPUPDATE" _Value="N"/&gt;
          &lt;KEY _Name="LSF.TrackingVendor" _Value="171"/&gt;
          &lt;KEY _Name="CLIENT.TRACKINGID" _Value="18786574"/&gt;
          &lt;KEY _Name="CLIENT.ID" _Value="CREDITCENTER"/&gt;
          &lt;RESPONSE_DATA&gt;
              &lt;FLOOD_RESPONSE FEMAAdditionalLenderDescription="98756987876" MISMOVersionID="2.4"&gt;
                  &lt;BORROWER _FirstName="###############" _LastName="###############"/&gt;
                  &lt;MORTGAGE_TERMS LenderCaseIdentifier="068461451"/&gt;
                  &lt;PROPERTY _City="MASON CITY" _County="CERRO GORDO" _PostalCode="50401" _State="IA" _StreetAddress="929 N ADAMS AVE"&gt;
                      &lt;_IDENTIFICATION CountyFIPSCode="033" StateFIPSCode="19"/&gt;
                  &lt;/PROPERTY&gt;
                  &lt;EMBEDDED_FILE MIMEType="application/pdf" _Description="Adobe Pdf" _EncodingType="Base64" _Extension="pdf" _Name="Certificate_1604008485" _Version="1.3"&gt;
                      &lt;DOCUMENT&gt;bae64encodedData&lt;/DOCUMENT&gt;
                  &lt;/EMBEDDED_FILE&gt;
                  &lt;FLOOD_DETERMINATION FloodCertificationIdentifier="1604008485" FloodPartialIndicator="N" FloodProductCertifyDate="2016-04-05 08:21:24 AM" SpecialFloodHazardAreaIndicator="N" _LifeOfLoanIndicator="Y"&gt;
                      &lt;_LOAN_INFORMATION RegulatoryAgencyLenderIdentifier="123456789"/&gt;
                      &lt;_COMMUNITY_INFORMATION NFIPCommunityFIRMDate="1980-12-02" NFIPCommunityIdentifier="190060" NFIPCommunityName="MASON CITY, CITY OF" NFIPCommunityParticipationStartDate="1975-03-21" NFIPCounty="CERRO GORDO" NFIPStateCode="IA"/&gt;
                      &lt;_BUILDING_INFORMATION NFIPFloodZoneIdentifier="X" NFIPMapIdentifier="19033C" NFIPMapIndicator="Y" NFIPMapPanelDate="2012-05-16" NFIPMapPanelIdentifier="0162" NFIPMapPanelSuffixIdentifier="C"/&gt;
                      &lt;_INSURANCE_INFORMATION NFIPCommunityParticipationStatusType="Regular" ProtectedAreaIndicator="N"/&gt;
                      &lt;FULFILLMENT_PARTY _City="Austin" _Name="CoreLogic Flood Services" _PostalCode="78758" _State="TX" _StreetAddress="11902 Burnet Road"&gt;
                          &lt;CONTACT_DETAIL&gt;
                              &lt;CONTACT_POINT _RoleType="Work" _Type="Phone" _Value="1-800-447-1772"/&gt;
                          &lt;/CONTACT_DETAIL&gt;
                      &lt;/FULFILLMENT_PARTY&gt;
                  &lt;/FLOOD_DETERMINATION&gt;
                  &lt;LENDER _City="Jacksonville" _Identifier="98756987876" _PostalCode="32256" _State="FL" _StreetAddress="9000 Southside Blvd, Bldg 100" _UnparsedName="Bank of America"/&gt;
                  &lt;EXTENSION&gt;
                      &lt;EXTENSION_SECTION&gt;
                          &lt;EXTENSION_SECTION_DATA&gt;
                              &lt;FLOOD_DETERMINATION SplitDeterminationIndicator="N"/&gt;
                          &lt;/EXTENSION_SECTION_DATA&gt;
                      &lt;/EXTENSION_SECTION&gt;
                  &lt;/EXTENSION&gt;
              &lt;/FLOOD_RESPONSE&gt;
          &lt;/RESPONSE_DATA&gt;
          &lt;STATUS _Code="S0010" _Condition="Success" _Description="This is a TEST ORDER. It cannot be used for any purpose other than system testing. Section II.B.4 applies to all buildings on property described in Sec I.2.   THIS FLOOD DETERMINATION IS PROVIDED TO THE LENDER PURSUANT TO THE FLOOD DISASTER PROTECTION ACT.  IT SHOULD NOT BE USED FOR ANY OTHER PURPOSE." _Name="Complete"/&gt;
      &lt;/RESPONSE&gt;
  &lt;/RESPONSE_GROUP&gt;
  </code></pre>
  
  <p>and dw transform looks like </p>
  
  <pre><code>%dw 1.0
  %output application/java
  ---
  {
      brwrFirstName: payload.RESPONSE_GROUP.RESPONSE.RESPONSE_DATA.FLOOD_RESPONSE.BORROWER.@"_FirstName",
  
      brwrLastName: payload.RESPONSE_GROUP.RESPONSE.RESPONSE_DATA.FLOOD_RESPONSE.BORROWER.@"_LastName" default '',
  </code></pre>
  
  <p>I am seeing an error at brwrFirstName: payload.RESPONSE_GROUP.RESPONSE.RESPONSE_DATA.FLOOD_RESPONSE  </p>