Developer

Working with XML

There are two methods that NextGrid works with XML.

Design-time


The first method is at design-time using the XML import and export option of the NextGrid's Cells, Column and Slides Editors.

Note: the Views editor does not support XML import/export.

Run-time


The second method is at run-time by using NextGrid's built-in Xml (de)serializing methods.

Exporting Cell Data


Exporting Cell Data is done by using:

XmlSerializeData(String xmlOutputFile)
or

XmlSerializeDataAsString()
Note: due to restrictions in the XML format not all cells can be exported to XML.

Exporting Grid Layout


Exporting Grid Layout is done by using:

XmlSerializeLayout(String xmlOutputFile)
or

XmlSerializeLayoutAsString()

Importing Cell Data


Importing Cell Data is done by using:

XmlDeserializeData(String xmlOutputFile)
or

XmlDeserializeDataFromString()

Importing Grid Layout


Importing Grid Layout is done by using:

XmlDeserializeLayout(String xmlOutputFile)
or

XmlDeserializeLayoutFromString()
Note: that restoring the grid layout must take place before restoring cell data as cell data is cleared during restoring the grid layout.

See also