

| Type | Description | |||
| 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. | |||
| Flags as Variant |
Specifies a numeric expression that defines which parts of the XML file should be ignored when loading data. Multiple flags can be combined using bitwise OR (|).
The flags you can use are (numeric value only) :
For example, LoadXML(..., 7) loads the data but ignores the file’s DateFormat, TimeFormat, and NumberFormat. You can use this approach when saving the file locally, as the date, time, and number formats will remain unchanged. |
| Return | Description | |||
| Boolean | A 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 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>