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

@@ -164,8 +164,11 @@ namespace fmtxml
private static int UNDERLINE = 0x02;
private static int ITALICS = 0x04;
public GenXmlToSvg(string nm)
private string MyResultPath;
public GenXmlToSvg(string nm, string resPath)
{
MyResultPath = resPath;
genName = nm;
try
{
@@ -198,7 +201,7 @@ namespace fmtxml
private void WriteXml()
{
string path = "E:\\proms.net\\genmac.xml\\" + genName.Substring(0,genName.LastIndexOf(".")) + ".svg";
string path = MyResultPath + @"\genmacall\" + genName.Substring(0, genName.LastIndexOf(".")) + ".svg";
XmlTextWriter writer = new XmlTextWriter(path,System.Text.Encoding.Unicode);
writer.Formatting=System.Xml.Formatting.Indented;
xmlOutDoc.Save(writer);
@@ -206,7 +209,7 @@ namespace fmtxml
private void ReadXml()
{
string fnm = "E:\\proms.net\\genmac.xml\\convert\\" + genName;
string fnm = MyResultPath + @"\genmacall\convert\" + genName;
xmlDoc = new XmlDocument();
XmlTextReader reader = new XmlTextReader(fnm);
xmlDoc.Load(reader);