<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=&quot;text/html&quot; rel=&quot;alternate&quot; href=&quot;</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">&quot;/&gt;&lt;title&gt;@ronm123
I meant in a browser, via a second projector probably.&lt;/title&gt;&lt;content
type=&quot;html&quot;&gt;&amp;lt;a href=&quot;</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">&quot;&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=&quot;image/png&quot; rel=&quot;image&quot; href=&quot;</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">&quot;/&gt;&lt;twitter:source&gt;&amp;lt;a
href=&quot;</font><a href=http://twitter.com/><font size=2 face="sans-serif">http://twitter.com/</font></a><font size=2 face="sans-serif">&quot;&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);
//http://s3.amazonaws.com/twitter_production/profile_images/96243182/Photo14_normal.jpg</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%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">&quot;RonM&quot; &lt;ronm@mitchellmedia.co.uk&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">&quot;'Xerte discussion list'&quot;
&lt;xerte@lists.nottingham.ac.uk&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">12.04.2009 20:21</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">[Xerte] how to strip out a specific
string?</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Sent by:</font>
<td><font size=1 face="sans-serif">xerte-bounces@lists.nottingham.ac.uk</font></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=&quot;text/html&quot;
rel=&quot;alternate&quot; href=&quot;</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">&quot;/&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=&quot;html&quot;&gt;&amp;lt;a
href=&quot;</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">&quot;&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=&quot;image/png&quot;
rel=&quot;image&quot; href=&quot;</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">&quot;/&gt;</font>
<br><font size=3 face="Arial">&nbsp; &nbsp; &lt;twitter:source&gt;&amp;lt;a
href=&quot;</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">&quot;&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>
Xerte@lists.nottingham.ac.uk<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>