Page 1 of 1

Correct way to set up auto-update functionality ("Invalid XML was found.")

Posted: Wed Apr 21, 2021 2:06 am
by CrisisStudent
Hi all,

I have posted add-in on Eviews site, but did not realize the update does not function properly. There were initially some mistakes on my part, but even after fixing those I still get message "Invalid XML was found.", so I must be still missing something.

The fixed add-in package is attached, below is the instalation command and XML file. Could you help me with fixing it?

Thanks!
CrisisStudent

Code: Select all

addin(type="equation",menu="Specifiation(s) evaluation",proc="speceval",docs=".\documentation\specification_evaluation.pdf",desc="Performs evaluation of (forecasting properties of) equation(s) and prepares report summarizing the results.",url="https://github.com/CrisisStudent/SpecEval/blob/master/update_info.xml",version="1.0") ".\specification_evaluation.prg"

Code: Select all

<item> <title>speceval</title> <path>specification_evaluation.prg</path> <version>1.0</version> <description>Performs evaluation of (forecasting properties of) equation/VAR/identity object(s) and prepares report summarizing the results.</description> <link>https://github.com/CrisisStudent/SpecEval/blob/master/Package/SpecEval.aipz</link> <pubDate>4 Apr 2021</pubDate> </item>

Re: Correct way to set up auto-update functionality ("Invalid XML was found.")

Posted: Wed Apr 21, 2021 6:46 am
by EViews Gareth
The issue (and it is common with github) is that the address you're using isn't just the raw XML - the site has all the other github stuff around it.
Use this link instead:

Code: Select all

https://raw.githubusercontent.com/CrisisStudent/SpecEval/master/update_info.xml

Re: Correct way to set up auto-update functionality ("Invalid XML was found.")

Posted: Wed Apr 21, 2021 7:48 am
by CrisisStudent
Thanks Gareth!

It helped, as now Eviews manages to check for the update. However I encounter problem when I confirm that I want to update the file. For the add-in mentioned above I get error
"SPECEVAL: Error encountered during install - Could not open file due to: unknown error."
. I also tried for other add-in and there I get
"COLORCODE: Could not retrieve AIPZ file"
.

This is after I have changed the path also in the update_info.xml file, which is now following:

Code: Select all

<item> <title>speceval</title> <path>specification_evaluation.prg</path> <version>1.0</version> <description>Performs evaluation of (forecasting properties of) equation/VAR/identity object(s) and prepares report summarizing the results.</description> <link>https://raw.githubusercontent.com/CrisisStudent/SpecEval/master/Package/SpecEval.aipz</link> <pubDate>4 Apr 2021</pubDate> </item>

Re: Correct way to set up auto-update functionality ("Invalid XML was found.")

Posted: Wed Apr 21, 2021 8:08 am
by EViews Gareth
Same issue. Your XML file:

Code: Select all

<item> <title>speceval</title> <path>specification_evaluation.prg</path> <version>1.0</version> <description>Performs evaluation of (forecasting properties of) equation/VAR/identity object(s) and prepares report summarizing the results.</description> <link>https://github.com/CrisisStudent/SpecEval/blob/master/Package/SpecEval.aipz</link> <pubDate>4 Apr 2021</pubDate> </item>
Has a link which is the generic github link - you'll need to replace the link with the raw.

Re: Correct way to set up auto-update functionality ("Invalid XML was found.")

Posted: Wed Apr 21, 2021 8:15 am
by CrisisStudent
That's what I thought, but I already fixed that (see code in my last reply).

Also, when I use that link, the installation package downloads and runs correctly.

Re: Correct way to set up auto-update functionality ("Invalid XML was found.")

Posted: Wed Apr 21, 2021 9:18 am
by EViews Gareth
The XML file right now doesn't have the raw part.
https://raw.githubusercontent.com/Crisi ... e_info.xml

Re: Correct way to set up auto-update functionality ("Invalid XML was found.")

Posted: Wed Apr 21, 2021 12:36 pm
by CrisisStudent
Ah, yeah, I did no push online, of course. When I fixed this then the update for the other two add-ins works. But for SpecEval I get message that Installation failed (it works when I run the link directly). Any way to check what is going on? All the updated files are now on the GitHub site.

Re: Correct way to set up auto-update functionality ("Invalid XML was found.")

Posted: Wed Apr 21, 2021 12:41 pm
by EViews Gareth
Just tried it, and it worked for me.

Re: Correct way to set up auto-update functionality ("Invalid XML was found.")

Posted: Wed Apr 21, 2021 11:42 pm
by CrisisStudent
Well, after restart it worked for me too. Moody computers, I guess. :shock:

Thanks a lot for all your help!