Mobile SDK > Disconnected mobile application reference > SurveyRoutingXMLMDSC reference > SurveyRoutingXMLMDSC public API
 
SurveyRoutingXMLMDSC public API
There are different methods for calling the component API to persist the MDD information into XML.
Use MDSC
Using this method, the standard MDSC API persists the MDD information into XML. For example:
MRDSCReg.Components comps = new MRDSCReg.Components();
MRDSCReg.Component com = comps["SurveyRoutingXMLMDSC"];
com.Metadata.Save(mdmdoc, ".\\temp\\t1.xml", null);
mdmdoc.Close();
Use .Net API 1
For example:
SurveyXMLMDSC.MetadataToRoutingXML m = new SurveyXMLMDSC.MetadataToRoutingXML();
m.SaveMetadata(mdmdoc, ".\\temp\\t1.xml", null);
mdmdoc.Close();
Use .Net API 2
For example:
SurveyXMLMDSC.MetadataToRoutingXML d = new SurveyXMLMDSC.MetadataToRoutingXML();
d.Open(mdmdoc, null);
d.SerializeToFile(".\\temp\\way3.xml");
mdmdoc.Close();
See also
SurveyRoutingXMLMDSC reference