method Schedule.LoadXML (Source as Variant)
Loads an XML document from the specified location, using MSXML parser.

TypeDescription
Source as Variant An indicator of the object that specifies the source for the XML document. The object can represent a file name, a URL, an IStream, a SAFEARRAY, or an IXMLDOMDocument.
ReturnDescription
BooleanA boolean expression that specifies whether the XML document is loaded without errors. If an error occurs, the method retrieves a description of the error occurred. 
The LoadXML method uses the MSXML ( MSXML.DOMDocument, XML DOM Document ) parser to load XML documents, previously saved using the SaveXML method. Before calling the LoadXML you may call the ClearAll method to empty the control's content. The LoadXML method fires AddEvent event for each loaded event. It is good to know, that the LoadXML method does not clear the Events collection, and this is happen to allow you load multiple XML files, so it can add new events each time.

The XML format looks like follows:

- <Content Author Component Version>
  <DateFormat Separator Short Long /> 
  <TimeFormat Separator Format AM PM /> 
  <NumberFormat Decimal /> 
- <Calendar WeekDays MonthNames AMPM FirstWeekDay NonworkingDays ShortDateFormat LongDateFormat ShortTimeFormat LongTimeFormat GroupHighlightEven ShowHighlightEvent DisableZoneFormat MinDate MaxDate ShowNonMonthDays Date SingleSel HideSel ...>
	- <Selection>
  		<Date Value .../> 
	  </Selection>
	  <HighlightEvent Bold Italic Underline StrikeOut FontSize .../> 
  </Calendar>
- <TimeScales DayStartTime DayEndTime>
	  <TimeScale TimeZone AlignLeft MinWidth MaxWidth Width AllowResize MajorRuler MajorLabel MajorPlainText MinorRuler MinorLabel MinorPlainText Visible Caption CaptionAlign ToolTip UserData MinorLabelColor .../> 
  </TimeScales>
- <Groups ApplyGroupingColors DisplayGroupingButton GroupHighlightEvent ShowGroupingEvents>
	- <Group ID Visible Caption Title ToolTip Alignment UserData>
		  <CalendarHighlightEvent Bold Italic Underline StrikeOut FontSize ... /> 
		  <ScheduleHighlightEvent Bold Italic Underline StrikeOut FontSize ... /> 
	  </Group>
  </Groups>
- <NonworkingPatterns>
	<NonworkingPattern ID PatternType PatternColor PatternFrameColor .../> 
  </NonworkingPatterns>
- <NonworkingTimes ShowNonworkingTime>
  	<NonworkingTime Expression StartTime EndTime IDNonworkingPattern .../> 
  </NonworkingTimes>
- <MarkZones>
	  <MarkZone Key Start End ShortLabel LongLabel GroupID PatternType PatternColor PatternFrameColor ... /> 
  </MarkZones>
- <MarkTimes ShowMarkTime>
	  <MarkTime Key Time Line TimeScaleLine LineColor TimeScaleLineColor Label TimeScaleLabel LabelAlign TimeScaleLabelAlign Movable StatusEventBackColor UserData ... /> 
  </MarkTimes>
- <Pictures ShowEventPictures>
  	<Picture Key Content Width Height ShowHandCursor Enabled ... /> 
  </Pictures>
  <Icons Content/> 
- <Events HeaderDayLongLabel HeaderDayShortLabel CreateEventLabel CreateEventLabelAlign UpdateEventsLabel UpdateEventsLabelAlign DefaultEventLongLabel DefaultEventTooltip DefaultEventPaddingLeft DefaultEventPaddingTop DefaultEventPaddingRight DefaultEventPaddingBottom ...>
	  <Event Start End GroupID Selectable ShowStatus ShortLabel LongLabel LabelAlign ExtraLabelAlign Pictures ... /> 
  </Events>
  </Content>