Posts: 1,271
Threads: 399
Joined: Mar 2003
before i try to invent the wheel again,
do you have an example for parsing a xml file ?
my idea is to build a small newsreader for checking the forum for new articles.
Posts: 12,072
Threads: 140
Joined: Dec 2002
typelib MSXML {D63E0CE2-A0A2-11D0-9C02-00C04FC99C8E} 2.0
#err 1
typelib MSXML {F5078F18-C551-11D3-89B9-0000F81FE221} 3.0
type QMFORUMRSSITEM str'title str'url str'text
ARRAY(QMFORUMRSSITEM) a
MSXML.XMLDocument xd._create
xd.url="http://www.quickmacros.com/forum/rss.php"
MSXML.IXMLElement e1 e2 e3
e1=xd.root.children.item("CHANNEL")
foreach e2 e1.children
,str tag=e2.tagName
,if(tag~"ITEM"=0) continue
,QMFORUMRSSITEM& r=a[a.redim(-1)]
,e3=e2.children.item("TITLE")
,r.title=e3.text
,e3=e2.children.item("LINK")
,r.url=e3.text
,e3=e2.children.item("DESCRIPTION")
,r.text=e3.text
;now all is in array, and you know what to do with it
int i
for i 0 a.len
,ShowText a[i].title a[i].text
Posts: 1,271
Threads: 399
Joined: Mar 2003
Posts: 1,769
Threads: 410
Joined: Feb 2003
care to share once you come up with something?
Posts: 1,271
Threads: 399
Joined: Mar 2003
Posts: 12,072
Threads: 140
Joined: Dec 2002
On Vista there is no ver 2 XML dll. I updated the code to use ver 3 on error.
Posts: 331
Threads: 60
Joined: May 2006
_pi
Did you ever finish this, or get a beta ?
Posts: 1,271
Threads: 399
Joined: Mar 2003
currently i work on a blog client (xml-rpc) for drupal cms.
i think a beta will be available next week.
first i have to finish setting up my new page.
Posts: 331
Threads: 60
Joined: May 2006
Sounds great, Good Luck on your page.
Posts: 1,271
Threads: 399
Joined: Mar 2003
Gintaras Wrote:typelib MSXML {D63E0CE2-A0A2-11D0-9C02-00C04FC99C8E} 2.0
#err 1
typelib MSXML {F5078F18-C551-11D3-89B9-0000F81FE221} 3.0
which one do i have to register in window 7?
Posts: 12,072
Threads: 140
Joined: Dec 2002
Probably 3. On Vista I have 3, 4, 5 and 6.