
In Yahoo Pipes, he Sub-Element Module is useful when working on XML files that you only want to extract part of the data from. To use it, enter the XML URL into the “Fetch Data” module into the top of the “Sub-Element Module”, click on it, and you’ll see a list of sub-elements populate in the dropdown list. Select the sub-element you want to display in the feed and it will show up in the output. The rest will be eliminated.
http://chilliwackdesign.com/yahoopipes/fetchdata.xml
Lets take a look back at our Ticketmaster affiliate feed of all the NHL Ticketmaster pages.
We can use “product” as our “path to item list” to narrow down our feed items.

Now lets say we only want to extract the actual Ticketmaster links. We can extract them by connecting our data source to the Sub-Element Module and selecting the attribute we want to extract.
In this case, the URL attribute is called “item.buyat_short_deeplink_url” so we just select that from the dropdown list in the Sub-Element Module…
And this is what we get (content drilled down already):
Now we’ve extracted a list of affiliate links from Ticketmaster’s affiliate feed. This can be done for any attribute in any data feed with the Sub-Element Module.





Recent Comments