@PsichiX: thank you, that would also help me a lot. One more question though: does the EtSessionDownload() function take the the 'Transfer-Encoding' header field into account? (
Transfer-encoding)
@IMP: I knew that, but it would be more easy to just use
EtSessionDownload(url, buffer);
and then be able to access the headers.
and for your question, i use it like this:
var title, descr, link;
title = EtXmlTagGet(xml, '?xml/rss/channel/title/');
descr = EtXmlTagGet(xml, '?xml/rss/channel/description/');
link = EtXmlTagGet(xml, '?xml/rss/channel/link/');
This is how I use it, so maybe you should also include the '?xml/' at the beginning?
I'll try test it out soon.
EDIT:
I got it to work:
str = '
<?xml version="1.0" encoding="UTF-8"?>
<statuses type="array">
<status>
<created_at>Sat Aug 21 04:06:53 +0000 2010</created_at>
<source>web</source>
<truncated>false</truncated>
</status>
</statuses>
'
EtLibraryLoad('Ether.dll');
buffer = EtBufferCreate()
EtBufferWriteString(buffer, str);
xml = EtXmlCreate()
EtXmlParse(xml, buffer, chr(13) + chr(10) + chr(9) + ' ');
EtBufferFree(buffer);
EtBufferDestroy(buffer);
show_message(EtXmlTagGet(xml, '?xml/statuses/status/created_at/'));
EtXmlDestroy(xml);
EtLibraryFree();
Edited by kalzme, 22 August 2010 - 12:53 PM.