OSDN Git Service

Change generation of files/paths in xml dir to use FileManager
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / xml / XMLNoteRepair.java
index 0818de8..8fec2bc 100644 (file)
@@ -42,7 +42,7 @@ public class XMLNoteRepair {
                XMLNoteRepairHandler handler = new XMLNoteRepairHandler();
                
                // Replace DTD with local copy in case we are not connected
                XMLNoteRepairHandler handler = new XMLNoteRepairHandler();
                
                // Replace DTD with local copy in case we are not connected
-               File dtdFile = new File(Global.getDirectoryPath()+"xml/enml2.dtd");
+               File dtdFile = Global.getFileManager().getXMLDirFile("enml2.dtd");
                String dtd = dtdFile.toURI().toString();
                xmlData = xmlData.replace("<!DOCTYPE en-note SYSTEM \'http://xml.evernote.com/pub/enml2.dtd'>", 
                                "<!DOCTYPE en-note SYSTEM \"" +dtd +"\">");
                String dtd = dtdFile.toURI().toString();
                xmlData = xmlData.replace("<!DOCTYPE en-note SYSTEM \'http://xml.evernote.com/pub/enml2.dtd'>", 
                                "<!DOCTYPE en-note SYSTEM \"" +dtd +"\">");