Simian Jones
Dec 24 2007, 20:52
Is there a way to clear whatever you currently have in the say buffer? I'm looping through a series of XML tags and I only want the value from the last one. Here is what I have so far:
# Cover URL
do
outputto "coverurl"
findinline "<imageInstance>"
findinline "<url>"
sayuntil "</url>"
findinline "</imageInstance>"
while "<imageInstance>"
Only problem with this is that it keeps appending to coverurl when I'd rather it overwrite instead. I tried killtag "coverurl" inside the url but DO NOT try that, it locks mp3tag completely and you have to kill it from the Task Manager.
I'm sure I'm missing something obvoiusly, any help?
Florian
Dec 25 2007, 17:02
No, there currently is no way of resetting an output buffer.
Simian Jones
Dec 26 2007, 19:21
Bummer. In that case anyone have any good ideas on how to get just the last element in an unknown number of xml elements? I have this structure:
<imageinstance>
<url>http://www.monkey.com/image/a.jpg</url>
</imageinstance>
<imageinstance>
<url>http://www.monkey.com/image/f.jpg</url>
</imageinstance>
<imageinstance>
<url>http://www.monkey.com/image/g.jpg</url>
</imageinstance>
<imageinstance>
<url>http://www.monkey.com/image/b.jpg</url>
</imageinstance>
I only want the last <url>
Florian
Dec 28 2007, 14:19
The next build will address this issue.
Simian Jones
Dec 28 2007, 18:23
QUOTE (Florian @ Dec 28 2007, 06:19)

The next build will address this issue.
It's great to hear this, thanks!
Florian
Dec 29 2007, 20:59
The current
Development Build now has a new command
set "output name" "value"
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.