I would like to be able to drop an XML file, which conforms to a certain schema, onto a TW5 instance. It should then be parsed and tiddlers created or updated based on the XML file's contents.
- Is it possible to write custom "import modules"? If so, where can I find examples, such as existing import modules?
- My XML file is going to be huge, several MB in size, and it would result in around 10,000 small tiddlers. Feasible inside TW5 as to parsing?
While I can perfectly understand the current architecture to chose the deserializer based on the extension of the incoming file, this quickly hits a dead end when it comes to generic file formats, such as XML/.xml, without a cleary differentiating file extension. Of course, a quick workaround would be to rename the import file. But the next time I or someone else importing an updated XML file version ... so what file extension do I need to use?
Also, over time I suspect that we may see more .xml files with different XML schemas.
Do you see a way to allow multiple XML deserializers, based on the root element -- or maybe just based on the beginning of the XML file to be imported? Kind of a mime-type detection, just on a XML file signature?
Another question regarding XML parsing: are there any incrementally XML parser libraries for JavaScript? Our would it be better to use the built-in XML parser?
--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/9827917b-3822-46dd-a6e4-399fa9845f75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.