Developer Documentation Library > Mobile SDK > Disconnected mobile application reference > SurveyQuestionXMLMDSC reference > SurveyQuestionXMLMDSC public API
 
SurveyQuestionXMLMDSC public API
To call the component API to persist the MDD information into XML, use one of the following methods.
Use MDSC
The standard MDSC API persists the MDD information into XML. For example:
MRDSCReg.Components comps = new MRDSCReg.Components();
MRDSCReg.Component com = comps["SurveyQuestionXMLMDSC"];
com.Metadata.Save(mdmdoc, ".\\temp\\t1.xml", null);
mdmdoc.Close();
Use .Net API 1
For example:
SurveyXMLMDSC.MetadataToQuestionXML m = new SurveyXMLMDSC.MetadataToQuestionXML();
m.SaveMetadata(mdmdoc, ".\\temp\\t1.xml", null);
mdmdoc.Close();
Use .Net API 2
For example:
SurveyXMLMDSC.MetadataToQuestionXML d = new SurveyXMLMDSC.MetadataToQuestionXML();
d.Open(mdmdoc, null);
d.SerializeToFile(".\\temp\\way3.xml");
mdmdoc.Close();
See also
SurveyQuestionXMLMDSC reference