Created
January 13, 2012 20:17
-
-
Save larscwallin/1608494 to your computer and use it in GitHub Desktop.
Widgeteer IRXML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li> | |
<b>[[[email protected]]]</b> | |
</br> | |
[[+DisclaimerText]] | |
</li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h4> [[[email protected]]]:[[[email protected]]] </h4> | |
<ul> | |
[[+Disclaimer]] | |
</ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2> [[[email protected]]]</h2> | |
[[+Disclaimers]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment