Topic
3 replies Latest Post - ‏2012-01-31T18:26:19Z by Jean_Anderson
DonH
DonH
58 Posts
ACCEPTED ANSWER

Pinned topic Problem with Repeating Elements

‏2012-01-31T16:23:15Z |
I've been away from Mashups for a while and probably just forgotten how to do this... (but I can't find a solution in the documentation and I'm beginning to get frustrated with myself :-)

I have created a feed by extracting some data from a table on a web page using one of the plug-in's which can be found in DeveloperWorks. This is presented in the source operator in the data mashup builder as XML. It's a simple 3 row table which when I preview it, looks like this ->
-Entry
- table
- tbody
- tr
+td
+td
+td
+Entry
+Entry

The table data cells ("td") have data in them that I'd obviously like to extract and mash but I'm finding difficulty because I can't manipulate the fields due to them having the same label names.
Using Transform, I imagined I would have been able to give them all unique names but I don't see it. I'm sure it's because I'm not looking in the right place but where to look now??

Thanks
Updated on 2012-01-31T18:26:19Z at 2012-01-31T18:26:19Z by Jean_Anderson
  • DonH
    DonH
    58 Posts
    ACCEPTED ANSWER

    Re: Problem with Repeating Elements

    ‏2012-01-31T16:42:39Z  in response to DonH
    Sorry Readers... it's amazing what a little perseverance can do!!!
    I seem to have resolved my initial problem and I now have a feed that looks something like this -

    • entry
    - content
    + Firmware

    • entry
    - content
    + Upgrade

    • entry
    - content
    + OS_ver

    Each element (Firmware, Upgrade, OS_ver) has relevant data underneath but what I'd like to do now (and have forgotten how) is to get all the elements in the same "entry" ?

    Thanks
  • DonH
    DonH
    58 Posts
    ACCEPTED ANSWER

    Re: Problem with Repeating Elements

    ‏2012-01-31T17:48:06Z  in response to DonH
    Oh dear.....
    I feel a little like the "boy who cried Wolf" !!! :-)
    With just a tad more perseverance I managed to resolve that as well...

    ho hum.
    • Jean_Anderson
      Jean_Anderson
      27 Posts
      ACCEPTED ANSWER

      Re: Problem with Repeating Elements

      ‏2012-01-31T18:26:19Z  in response to DonH
      I'm glad you worked it out.

      Repeating elements can be pretty tricky. This FAQ might help a little:

      http://www-10.lotus.com/ldd/mashupswiki.nsf/dx/FAQs_about_Repeating_Elements_in_the_Data_Mashup_Builder_(V2.0)

      regards,

      -jean