using Freemind files with other programs

bobito
2010-09-28
2013-04-12
  • bobito
    bobito
    2010-09-28

    Hello,

      Does Freemind still allow the use of other, non-Freemind XML tags in a file?  That is, if it reads in a file with non-Freemind tags, does it retain them?  I think earlier 0.9.0 versions did this, but I am not sure that the latest one does.  Does anyone know?

    Thanks!
    Bob

     
  • bobito
    bobito
    2010-09-29

    Well, maybe no one answered because they did not know what I was talking about.  I went back and downloaded the earlier versions and I can't find any of them that retain my custom XML attributes.  I guess I was delusional!

    So is there any way to embed information in the current Freemind-format so that it can travel between programs?  That is, can my app save any custom information in a Freemind file that will be retained when the user edits and re-saves the file from Freemind?

    Thanks very much for any information on this!
    Bob

     
  • Hello Bob, for extending FreeMind mind map with custom data, you may be looking for attributes, implemented in FreeMind 0.9.0.

    http://freemind.sourceforge.net/wiki/index.php/Attribute

    From what I recall, FreeMind 0.8.1 should have preserved some non-FreeMind XML elements (or "foreign XML elements"?), so I don't think you were delusional . Can you try whether FreeMind 0.8.1 preserves some non-FreeMind XML elements? That would be nice of you. What it would *not* preserve, though, is <element>content</element>, I think, as the XML parser of FreeMind cannot parse mixed XML. But what it should have preserved is <element at="content"></element>.

    -Dan

     
  • bobito
    bobito
    2010-09-30

    Dan,

      Thanks for replying.  I tried 0.8.1 and it doesn't seem to retain my extra XML attributes.  Maybe I can use these attributes that you have linked. 

    I don't know what version I was using before - I could swear there was a version that just retained attributes attached to a node, like this:

    <node BACKGROUND_COLOR="#52ACA0" HS_DEFAULT_COLOR="#52ACA0" HS_BACKGROUND_COLOR="#000000" HS_ALPHA="127" COLOR="#ffffff" CREATED="1280781206302" ID="Freemind_Link_1234567890" MODIFIED="1285774140670" TEXT="Headspace" HS_FILE_VERSION="4" HS_SELECTED_ITEM="Freemind_Link_1234567977" HS_SELECTED_GROUP="Freemind_Link_1234567967" HS_XTRANS="-27.503401" HS_YTRANS="18.751331" HS_ZTRANS="3.000244" HS_XROT="0.000000" HS_YROT="0.000000" HS_ZROT="0.000000" HS_DRAWSCALE="0.686482">

    All those things starting with "HS_" were used by my program.  But they are stripped out of 0.8.1 and by every version of 0.9.0 I've recently tested.  I personally don't use the export/import feature, so I haven't tried it since first implementing it.  But a year and a half ago, I tested all that stuff and it worked.  Weird.

    Thanks,
    Bob