<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Peter<div>thanks that's really useful. I have got it working but in a convoluted way and your suggestion seems neater so I'll give that a go.&nbsp;</div><div>Cheers</div><div>Ron</div><div><br><div><div>On 12 Apr 2009, at 22:28, Peter Huppertz wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><font size="2" face="sans-serif">Hi Ron,</font> <br> <br><font size="2" face="sans-serif">I'm not totally sure how you implement your solution but due to the fact that Xerte is mainly a flash generator can't you use the built in flash functions to deal with XML?</font> <br> <br><font size="2" face="sans-serif">Like:</font> <br> <br><font size="2" face="sans-serif">xm = new XML('&lt;entry&gt;&lt;id&gt;tag:search.twitter.com,2005:1483252089&lt;/id&gt;&lt;published&gt;2009-04-09T12:59:26Z&lt;/published&gt;&lt;link type="text/html" rel="alternate" href="</font><a href="http://twitter.com/jamesclay/statuses/1483252089"><font size="2" face="sans-serif">http://twitter.com/jamesclay/statuses/1483252089</font></a><font size="2" face="sans-serif">"/&gt;&lt;title&gt;@ronm123 I meant in a browser, via a second projector probably.&lt;/title&gt;&lt;content type="html"&gt;&amp;lt;a href="</font><a href="http://twitter.com/ronm123"><font size="2" face="sans-serif">http://twitter.com/ronm123</font></a><font size="2" face="sans-serif">"&amp;gt;@ronm123&amp;lt;/a&amp;gt; I meant in a browser, via a second projector probably.&lt;/content&gt;&lt;updated&gt;2009-04-09T12:59:26Z&lt;/updated&gt;&lt;link type="image/png" rel="image" href="</font><a href="http://s3.amazonaws.com/twitter_production/profile_images/96243182/Photo14_normal.jpg"><font size="2" face="sans-serif">http://s3.amazonaws.com/twitter_production/profile_images/96243182/Photo14_normal.jpg</font></a><font size="2" face="sans-serif">"/&gt;&lt;twitter:source&gt;&amp;lt;a href="</font><a href="http://twitter.com/"><font size="2" face="sans-serif">http://twitter.com/</font></a><font size="2" face="sans-serif">"&amp;gt;web&amp;lt;/a&amp;gt;&lt;/twitter:source&gt;&lt;author&gt;&lt;name&gt;jamesclay (James Clay)&lt;/name&gt;&lt;uri&gt;</font><a href="http://twitter.com/jamesclay"><font size="2" face="sans-serif">http://twitter.com/jamesclay</font></a><font size="2" face="sans-serif">&lt;/uri&gt;&lt;/author&gt;&lt;/entry&gt;');</font> <br><font size="2" face="sans-serif">&nbsp; </font> <br><font size="2" face="sans-serif">trace(xml.firstChild.childNodes[6].attributes.href); //<a href="http://s3.amazonaws.com/twitter_production/profile_images/96243182/Photo14_normal.jpg">http://s3.amazonaws.com/twitter_production/profile_images/96243182/Photo14_normal.jpg</a></font> <br> <br><font size="2" face="sans-serif">Cheers,</font> <br> <br><font size="2" face="sans-serif">Peter</font> <br> <br> <br> <table width="100%"> <tbody><tr valign="top"> <td><font size="1" color="#5f5f5f" face="sans-serif">From:</font> </td><td><font size="1" face="sans-serif">"RonM" &lt;<a href="mailto:ronm@mitchellmedia.co.uk">ronm@mitchellmedia.co.uk</a>&gt;</font> </td></tr><tr valign="top"> <td><font size="1" color="#5f5f5f" face="sans-serif">To:</font> </td><td><font size="1" face="sans-serif">"'Xerte discussion list'" &lt;<a href="mailto:xerte@lists.nottingham.ac.uk">xerte@lists.nottingham.ac.uk</a>&gt;</font> </td></tr><tr valign="top"> <td><font size="1" color="#5f5f5f" face="sans-serif">Date:</font> </td><td><font size="1" face="sans-serif">12.04.2009 20:21</font> </td></tr><tr valign="top"> <td><font size="1" color="#5f5f5f" face="sans-serif">Subject:</font> </td><td><font size="1" face="sans-serif">[Xerte] how to strip out a specific string?</font> </td></tr><tr valign="top"> <td><font size="1" color="#5f5f5f" face="sans-serif">Sent by:</font> </td><td><font size="1" face="sans-serif"><a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a></font></td></tr></tbody></table> <br> <hr noshade=""> <br> <br> <br><font size="3" face="Arial">Hi all</font> <br><font size="3" face="Arial">I've been experimenting with the new module method of creating templates and have created a couple of new templates optimised for a specific purpose which I’ll happily share with the community once complete. One is an optimised &nbsp;view of twitter feeds but unless I’m mistaken it seems like the xml isn't complete for some reason. I can pick up and display the text and links etc ok but I can't work out how to access the profile pics. Here's an example entry...</font> <br><font size="3" face="Arial">&nbsp;</font> <br><font size="3" face="Arial">&lt;entry&gt;</font> <br><font size="3" face="Arial">&nbsp; &nbsp; &lt;id&gt;tag:search.twitter.com,2005:1483252089&lt;/id&gt;</font> <br><font size="3" face="Arial">&nbsp; &nbsp; &lt;published&gt;2009-04-09T12:59:26Z&lt;/published&gt;</font> <br><font size="3" face="Arial">&nbsp; &nbsp; &lt;link type="text/html" rel="alternate" href="</font><a href="http://twitter.com/jamesclay/statuses/1483252089"><font size="3" color="blue" face="Arial"><u>http://twitter.com/jamesclay/statuses/1483252089</u></font></a><font size="3" face="Arial">"/&gt;</font> <br><font size="3" face="Arial">&nbsp; &nbsp; &lt;title&gt;@ronm123 I meant in a browser, via a second projector probably.&lt;/title&gt;</font> <br><font size="3" face="Arial">&nbsp; &nbsp; &lt;content type="html"&gt;&amp;lt;a href="</font><a href="http://twitter.com/ronm123"><font size="3" color="blue" face="Arial"><u>http://twitter.com/ronm123</u></font></a><font size="3" face="Arial">"&amp;gt;@ronm123&amp;lt;/a&amp;gt; I meant in a browser, via a second projector probably.&lt;/content&gt;</font> <br><font size="3" face="Arial">&nbsp; &nbsp; &lt;updated&gt;2009-04-09T12:59:26Z&lt;/updated&gt;</font> <br><font size="3" face="Arial">&nbsp; &nbsp; &lt;link type="image/png" rel="image" href="</font><a href="http://s3.amazonaws.com/twitter_production/profile_images/96243182/Photo14_normal.jpg"><font size="3" color="blue" face="Arial"><u>http://s3.amazonaws.com/twitter_production/profile_images/96243182/Photo14_normal.jpg</u></font></a><font size="3" face="Arial">"/&gt;</font> <br><font size="3" face="Arial">&nbsp; &nbsp; &lt;twitter:source&gt;&amp;lt;a href="</font><a href="http://twitter.com/"><font size="3" color="blue" face="Arial"><u>http://twitter.com/</u></font></a><font size="3" face="Arial">"&amp;gt;web&amp;lt;/a&amp;gt;&lt;/twitter:source&gt;</font> <br><font size="3" face="Arial">&nbsp; &nbsp; &lt;author&gt;</font> <br><font size="3" face="Arial">&nbsp; &nbsp; &nbsp; &lt;name&gt;jamesclay (James Clay)&lt;/name&gt;</font> <br><font size="3" face="Arial">&nbsp; &nbsp; &nbsp; &lt;uri&gt;</font><a href="http://twitter.com/jamesclay%3c/uri"><font size="3" color="blue" face="Arial"><u>http://twitter.com/jamesclay&lt;/uri</u></font></a><font size="3" face="Arial">&gt;</font> <br><font size="3" face="Arial">&nbsp; &nbsp; &lt;/author&gt;</font> <br><font size="3" face="Arial">&nbsp; &lt;/entry&gt;</font> <br><font size="3" face="Arial">&nbsp;</font> <br><font size="3" face="Arial">I want to be able to strip out the path to the .jpg e.g. </font><a href="http://s3.amazonaws.com/twitter_production/profile_images/96243182/Photo14_normal.jpg"><font size="3" color="blue" face="Arial"><u>http://s3.amazonaws.com/twitter_production/profile_images/96243182/Photo14_normal.jpg</u></font></a> <br><font size="3" face="Arial">&nbsp;</font> <br><font size="3" face="Arial">But can't work out how to do that. I can access the content of &lt;id&gt;,&lt;title&gt; and even &lt;name&gt; but the tag containing the profile pic link e.g. &lt;link type=”image/png” doesn’t have a closing tag. Presumably I need some kind of function + regular expression - any suggestions?</font> <br><font size="3" face="Arial">&nbsp;</font> <br><font size="3" face="Arial">Cheers</font> <br><font size="3" face="Arial">Ron</font><tt><font size="2">_______________________________________________<br> Xerte mailing list<br> <a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br> </font></tt><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte"><tt><font size="2">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</font></tt></a><tt><font size="2"><br> </font></tt> <br> <br> _______________________________________________<br>Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>http://lists.nottingham.ac.uk/mailman/listinfo/xerte<br></blockquote></div><br></div></body></html>