This commit is contained in:
@@ -8,8 +8,10 @@ namespace fmtxml
|
||||
{
|
||||
class EntireFormat
|
||||
{
|
||||
public EntireFormat(string mxml)
|
||||
private string MyPath;
|
||||
public EntireFormat(string mxml, string path)
|
||||
{
|
||||
MyPath = path;
|
||||
XmlDocument xmldoc = new XmlDocument();
|
||||
XmlElement top = xmldoc.CreateElement("PlantFormat");
|
||||
xmldoc.AppendChild(top);
|
||||
@@ -44,7 +46,7 @@ namespace fmtxml
|
||||
}
|
||||
XmlWriterSettings settingsout = new XmlWriterSettings();
|
||||
settingsout.Encoding = Encoding.Unicode;
|
||||
string outname = "e:\\fmtall\\" + mxml.Substring(mxml.IndexOf("\\")+1,mxml.Length - 13) + "all.xml";
|
||||
string outname = MyPath + @"\fmtall\" + mxml.Substring(mxml.IndexOf("\\")+1,mxml.Length - 13) + "all.xml";
|
||||
XmlWriter xmlwrite = XmlWriter.Create(outname,settingsout);
|
||||
xmldoc.WriteContentTo(xmlwrite);
|
||||
xmlwrite.Close();
|
||||
|
Reference in New Issue
Block a user