Hi,
I really recommend against creating xml manually, otherwise you risk
of missing stuff.
It's better and simpler to use the libmnemosyne API to add a card. See e.g.
http://bazaar.launchpad.net/~peter-bienstman/mnemosyne-proj/trunk/view/head:/mnemosyne/mnemosyne/example_scripts/add_card.py
Alternatively, you can write an importer for YoudaoDict. See as
inspiration here:
http://bazaar.launchpad.net/~peter-bienstman/mnemosyne-proj/trunk/view/head:/mnemosyne/mnemosyne/libmnemosyne/file_formats/cuecard_wcu.py
Good luck!
Peter
Quoting Huafei Zhao <
zhaoh...@gmail.com>:
> *Hello !I really like this software ,so i want to give up my last
> one(YoudaoDict from China),I am now learning Japanese and need to remember
> a lot of words,I hope this software can help me.To understand how the XML
> file is constructed .I added two words to cards with two tags by hand.Then
> exported them with a XML file,like this :*
> *but i cann't understand what the <log card_t="" ...>...</log> means.now I
> want to generate a XML file with my own XML file by java or other language
> .*
> *Below is my XML file,and i think this type of file may more userful and
> need less space,*
> <xml>
> <?xml version="1.0" encoding="utf-8"?>
>
> <wordbook>
> <item>
> <word>日本人</word>
> <trans>日本人 [词性:名词]</trans>
> <phonetic>にほんじん |(声调:)</phonetic>
> <tags>标日初级</tags>
> <progress>6</progress>
> </item>
> <item>
> <word>韓国人</word>
> <trans>韩国人 [词性:名词]</trans>
> <phonetic>かんこくじん |(声调:)</phonetic>
> <tags>标日初级</tags>
> <progress>6</progress>
> </item>
> </wordbook>
>
> <xml>
> </code>
>
> *If you know what the above means ,please tell me or help me transfer
> it.The attachment file is what i want to transfer. Thanks a lot!*
>
> --
> You received this message because you are subscribed to the Google
> Groups "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to
mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to
mnemosyne-...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/mnemosyne-proj-users/c102039f-bfa3-4426-b164-83bbf3a6d091%40googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.