Skip to content

Instantly share code, notes, and snippets.

@larscwallin
Created January 13, 2012 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save larscwallin/1608494 to your computer and use it in GitHub Desktop.
Save larscwallin/1608494 to your computer and use it in GitHub Desktop.
Widgeteer IRXML
Hi :)
Here comes an untested, but probable, solution.
From reading your log I think i saw your the root of your issue. It would seem that you placed many identical placeholders in a sequence to iterate through the collection of Dislamer items. Widgeteer only iterates using separate templates however. A good rule is that as soon as you see a {} in your feed and you want something other than a simple string or number value you need a new chunk template. Every template is an iteration point. No chunk, no iteration.
You basically have have three levels you want to traverse
- IRXML
-- Disclaimers
--- Disclaimer
For each of these levels you create a chunk template. Every Disclaimer object is just a collection of attributes and a string field called DisclaimerText. At this point you can access any Simple field from a nested object (like the attributes) and of course any local field such as the DisclaimerText.
If lets say the @attributes object had a collection you wished to iterate through you would need yet another chunk.
Hope this works for you. Again i have not tested it so there might be mistakes :)
Good luck!
<li>
<b>[[+@attributes.id]]</b>
</br>
[[+DisclaimerText]]
</li>
<h4> [[+@attributes.PubDate]]:[[+@attributes.PubTimes]] </h4>
<ul>
[[+Disclaimer]]
</ul>
<h2> [[+irxml.@attributes.CorpMasterID]]</h2>
[[+Disclaimers]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment