/// , such as: C: / Sample.xml code> /// param> ////
#Region "file check" BOOL BFILEXIST = file.exists (p_strpath); if (true! = bfileexist) {TRE {streamwriter sw = file.createtext (p_strpath); sw.writeline ("
#Region "File Format Check" if (false! = BRTN) {Try {xmldoc.load; brtn = true;} catch (exception ex) {m_strimage = ex. amount;}; brtn = false; } #Endregion
#Region "error message write XML document" if (false! = BRTN) {// root node xmlnode node = xmldoc.createElement ("error");
Xmlattribute XMLTIME = Xmldoc.createAttribute ("time"); xmltime.value = XmlConvert.Decodename (DateTime.now.tostring ()); Node.Attributes.Append (XMLTIME);
// Write details BRTN = XMLNode AD (xmlDoc, node, m_expget); if (false! = Brtn) {xmldoc.childNodes [0] .appendchild (node); try {xmldoc.save (p_strpath); brtn = true;} Catch (Exception EX) {m_StrMessage = ex.Message.toString (); BRTN = false;}}} #endregionif (false! = brtn) m_strime = "Write XML files!";
Return BRTN;}