Hi,

I would like to point out a bug in Google Calendar API 1.1.0.0 and i 
encountered this when i was testing it for a Recurrence Exception. I was keep 
on getting a "Pasing Failed" exception and when i checked it was
"g:when inside g:originalEvent is required." I checked the feed and the element 
was there and the reason was :

public When OriginalStartTime
{
get 
{ 
return FindExtension(GDataParserNameTable.XmlReminderElement, 
BaseNameTable.gNamespace) as When;
}
set 
{ 
ReplaceExtension(GDataParserNameTable.XmlReminderElement, 
BaseNameTable.gNamespace, value);
}
}


public override IExtensionElement CreateInstance(XmlNode node, AtomFeedParser 
parser) 
{
IExtensionElement ele = base.CreateInstance(node, parser);
OriginalEvent ev = ele as OriginalEvent;
if (ev != null)
{
if (ev.IdOriginal == null)
{
throw new ArgumentException("g:originalEvent/@id is required.");
}
if (ev.OriginalStartTime == null)
{
throw new ArgumentException("g:when inside g:originalEvent is required.");
}
}
return ev;
}


Note that the actual OriginalStartTime property should look like :

 
public When OriginalStartTime
{
get 
{ 
return FindExtension(GDataParserNameTable.XmlWhenElement, 
BaseNameTable.gNamespace) as When;
}
set 
{ 
ReplaceExtension(GDataParserNameTable.XmlWhenElement, BaseNameTable.gNamespace, 
value);
}
}


Thanks
Kulvinder Singh


       
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to