Converting XML to Pure Store Format

43 views
Skip to first unread message

Smandoli

unread,
Jan 15, 2012, 11:07:29 AM1/15/12
to tiddl...@googlegroups.com
I have an existing XML file.  It's fairly complex with nested layers, but it essentially represents a text document.  I'm planning on using python to convert it into a pure store format TW.  Does anyone have any tips, ideas or warnings?

Eric Shulman

unread,
Jan 17, 2012, 1:42:12 PM1/17/12
to TiddlyWiki
here's one tip: Tiddler content in the storeArea is HTML-encoded.
Thus:

< is &lt;
> is &gt;
" is &quot;
& is &amp;

-e

Smandoli

unread,
Jan 18, 2012, 1:51:06 PM1/18/12
to tiddl...@googlegroups.com
As a python newbie, I learned I should properly use python's XML parser, and NOT try to roll my own regex.  And I learned this before wasting too much time.  Thanks Google. 

On Sunday, January 15, 2012 10:07:29 AM UTC-6, Smandoli wrote:
I have an existing XML file ... planning on using python ...

Smandoli

unread,
Jan 18, 2012, 1:55:54 PM1/18/12
to tiddl...@googlegroups.com
Thanks.  I had observed that was super-important.  Must learn python function for converting characters.  This routine should be reusable (the XML is not prone to changes, but could happen), so I need to Keep It Lazy. 
Reply all
Reply to author
Forward
0 new messages