Sign in to follow this  
Followers 0
Ontosy

latest version com error

4 posts in this topic

#1 ·  Posted (edited)

This code no longer works with the latest version of autoit . Why?

$node = ObjCreate("Microsoft.XMLDOM")
$node.setProperty("SelectionLanguage", "XPath")
$node.async = "false"
$node.load(@TempDir & "rss.xml")
$channel = $node.getElementsByTagName('channel' ).item(0)

;ERROR:
$title = $channel.getElementsByTagName('title' ).item(0).firstChild.data
$link = $channel.getElementsByTagName('link' ).item(0).firstChild.data
$items = $channel.getElementsByTagName('item')
Edited by Ontosy

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

not a object type

Edited by Ontosy

Share this post


Link to post
Share on other sites

I have solved.

New version have problem with "&" and accented in xml node. It need to convert to html entity.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0