I have an XML source that puts data at various "parent" levels. If I select the "detail" level, the parent attributes are not represented in the XML data feed. Is there some way to do that?

An example document:

 

<?xml version="1.0" encoding="UTF-8" ?>
<services>
  <service name="V_ShippingInfo" owner="Douglas Kelly" userVer="1.0">
    <consumer consName="Consumer_Shipping">
      <details>
        <totalhits>1</totalhits>
        <successHits>1</successHits>
        <avgRespTime>1441</avgRespTime>
        <requestPayload>66</requestPayload>
        <responsePayload>625</responsePayload>
      </details>
    </consumer>
  </service>
  <service name="V_EmployeeData" owner="Douglas Kelly" userVer="1.0"></service>
  <service name="V_LocationSessionData" owner="INTERNAL\Administrator" userVer="1.0">
    <consumer consName="Consumer_Vendor">
      <details>
        <totalhits>1</totalhits>
        <successHits>1</successHits>
        <avgRespTime>1043</avgRespTime>
        <requestPayload>2258</requestPayload>
        <responsePayload>850</responsePayload>
      </details>
    </consumer>
  </service>
  <service name="V_CrmLocationUpdate" owner="Douglas Kelly" userVer="1.0">
    <consumer consName="Consumer_ESB">
      <details>
        <totalhits>24</totalhits>
        <successHits>0</successHits>
        <avgRespTime></avgRespTime>
        <requestPayload></requestPayload>
        <responsePayload></responsePayload>
      </details>
    </consumer>
    <consumer consName="unknown">
      <details>
        <totalhits>4</totalhits>
        <successHits>0</successHits>
        <avgRespTime></avgRespTime>
        <requestPayload></requestPayload>
        <responsePayload></responsePayload>
      </details>
    </consumer>
  </service>
  <service name="V_CrmLocationDetailsUpdate" owner="Douglas Kelly" userVer="1.0"></service>
  <service name="V_CrmScheduleUpdate" owner="Douglas Kelly" userVer="1.0"></service>
  <service name="V_LocationMaster" owner="Douglas Kelly" userVer="1.1">
    <consumer consName="Consumer_CRM">
      <details>
        <totalhits>250</totalhits>
        <successHits>239</successHits>
        <avgRespTime>810</avgRespTime>
        <requestPayload>2276</requestPayload>
        <responsePayload>4327</responsePayload>
      </details>
    </consumer>
  </service>
</services>
  I have "/services/service/consumer" as the repeat element, which brings in "consName" as a column, but not /service/@name nor /service/@owner. If I make /services/service the repeat element, then when there is more than one /services/service/consumer for a /services/service node, I get totalhits columns and totalhits_0 columns.    Any ideas on how to get @name, @owner, @userVer in as columns, along with the consumer/details?

 

 or register to reply.

Notify Moderator