method ChartView.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 fetch the control's data from XML documents, previously saved using the SaveXML method. The control is emptied when the LoadXML method is called, and so the nodes collection is emptied before loading a new XML document. The <root> element holds information about the root node of the control, including its child nodes stored in <node> elements. Properties like Caption, Key, Image, ImageAlignment, Expanded or Left for assistant nodes, are saved for each node. The <assistants> element contains a collection of <assistant> elements that holds information about an assistant node.

The XML format looks like follows:

- <Content Author Component Version>
	- <Root Key Caption Image ImageAlignment Expanded>
		- <Node Key Caption Image ImageAlignment Expanded>
			- <Node Key Caption Image ImageAlignment Expanded/>
			- <Node Key Caption Image ImageAlignment Expanded>
				- <Node Key Caption Image ImageAlignment Expanded/>
				- <Node Key Caption Image ImageAlignment Expanded>
				  </Node>
				....
				- <Assistants>
					  <Assistant Caption Left Image ImageAlignment /> 
				  </Assistants>
			  </Node>
			....
			- <Assistants>
				  <Assistant Caption Left Image ImageAlignment /> 
			  </Assistants>
		  </Node>
		- <Assistants>
			  <Assistant Caption Left Image ImageAlignment /> 
		  </Assistants>
	  </Root>
</Content>