Aaron J Spetner
I am confused. I am trying to validate an iCalendar feed. The validator is giving me the error "Expected [BEGIN], read [?BEGIN]"
But there is no question mark in the feed. In fact, below the error it shows:
3: PRODID:-//Google Inc//Google Calendar 70.9054//EN
6: X-WR-CALNAME:Doe, John - Enrollment Calendar
7: X-WR-CALDESC:Doe, John - Enrollment Calendar
Please send all e-mail for me to email@example.com
I should add that sometimes (randomly), the validator shows the first line as:
I suspect there is something corrupting your input stream data. You may want to download the data locally first, then perform some sanity check (i.e. check the stream data starts with 'BEGIN') before trying to parse the data.