On Fri, Nov 11, 2011 at 5:30 PM, Edward K. Ream <[email protected]> wrote:
> Look in leoPy.leo:: > > @file leoImport.py--><< how to write a new importer >> > > Study this carefully: it tells how to think about the problem. Then > feel free to ask questions here. It took some time to register what you probably were asking. There are two approaches: 1. Use Leo's new xml importer to import the FreeMind file *as xml*. Not likely to be what you had in mind. But unless you *did* have that in mind, my advice to read the docs mentioned above doesn't make much sense. That is, using an xml importer only makes sense if you plan to edit FreeMind files as FreeMind source code. 2. Use a standard Python xml parser tool (lxml or sax, say) to parse the FreeMind file, and then use the parsed representation of the xml file to create some *other* representation of the FreeMind data, say a graph to be viewed with viewrendered. Even if you wanted a fairly direct representation of the FreeMind data as a Leo outline, it would probably be easier to user lxml or sax to create the Leo outline, unless you really want the first approach. Clear? Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
