FFCal’s format changed. 110227.

Please tell me new FFCal program released..

Old format.

<event>
<title>ECB President Trichet Speaks</title>
<country>EUR</country>
<date>02-13-2011</date>
<time>5:00pm</time>
<impact>Medium</impact>
<forecast />
<previous />
</event>

New format.

<event>
<title>Treasury Sec Geithner Speaks<title>
<country>USD<country>
<date>
<!CDATA[ 02-19-2011 ]]>
</date>
<time>
<!CDATA[ 3:30pm ]]>
</time>
<impact>
<!CDATA[ Medium ]]>
</impact>
<forecast />
<previous />
</event>

Original program.

// Get data between start and end tag
mainData[newsIdx][i] = StringSubstr(myEvent, begin, end - begin);

I testing my original temporary program until new FFCal program released.

// Get data between start and end tag
mainData[newsIdx][i] = StringSubstr(myEvent, begin, end - begin);
if (StringFind(mainData[newsIdx][i], "CDATA", 0) >= 0)
{
////   	mainData[newsIdx][i] = StringSubstr(myEvent, begin+StringLen("<![CDATA["), end - begin - StringLen("<![CDATA[]]>") + 1);

   	mainData[newsIdx][i] = StringSubstr(myEvent, begin+StringLen("<![CDATA["), end - begin - StringLen("<![CDATA[]]>") );
}

[test q=”FFCal”]

タグ:
まだコメントはありません。