HierarchyData LoadFromXmlContent Method Chart4.NET - Organization Charting Component (C#/VB.NET/ASP.NET) - Documentation
Onlinewww.Chart4.NET (Documentation) | OnlineSamples Download | Release Notes

Loads data from XML content as a string. See LoadFromXmlFile() for the desired XML format and remarks.

Namespace: UnifoChart.Hierarchy
Assembly: UnifoChart.Hierarchy (in UnifoChart.Hierarchy.dll) Version: 5.1.0.0 (5.1.0)
Syntax

public string LoadFromXmlContent(
	string FileContent
)
public String LoadFromXmlContent(
	String FileContent
)

Return Value

Returns blank if succeeded, XML validation message otherwise.
Examples

            string sXml = @"<chart>
              <settings PhotoPath='' PhotoSpecification='UsePhoto_ImageList4Levels' />
              <data>
            	<item text='Everything is Hierarchical'>
            	  <item text='How to describe?'>
            		<item text='Table of Contents'/>
            	  </item>
            	  <item text='What to do?'/>
            	</item>
              </data>
            </chart>";
            
string sResult = hierarchyWin1.hpcData.LoadFromXmlContent( sXml );
hierarchyWin1.hpcData.ExpandAll();
hierarchyWin1.Refresh();
See Also