This commit is contained in:
2008-10-03 11:09:04 +00:00
parent a775337ba0
commit 4ea65e4bf6
10 changed files with 361 additions and 220 deletions

View File

@@ -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();