Indeed attributes are extended fields. At the moment I use the following: 1. load a TW file into a string and cut of every thing above the storearea and below the storearea 2. create a new DOMDocument and load the string into it >> error parsing attribute name << here it goes wrong 3. create an array of tiddlers with GetElementsByTagName("div") 4. traverse trough the tiddlers array and take out the title etc. with getAttribute and the body with nodeValue
Escaping the dot does not work, I stick with replacing with underscore for the time being. Loading the whole TW file into a DOMDucument was not working for that reason I used a string as step in between. Thanks for the info, Okido On Mar 6, 7:11 pm, FND <f...@gmx.net> wrote: > > The attributes used by tiddlysnip for example tsnip.url contains > > *dots*, this attribute name causes a parsing error. > > I can work around this by replacing the dot with a underscore, but I > > would like to know if there is a specific reason for this dot usage ? > > I take it by attributes here you mean extended fields*? > Using the dot for (pseudo-)namespacing is just a convention which > probably arose due to the resemblance to regular JavaScript objects. > For example, the adaptor mechanism uses server.type, server.host and > server.workspace. > > At which point do you get a parsing error? Could you perhaps escape > those dots? > > -- F. > > *http://tiddlywiki.org/wiki/Extended_Fields --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To post to this group, send email to TiddlyWikiDev@googlegroups.com To unsubscribe from this group, send email to tiddlywikidev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/TiddlyWikiDev?hl=en -~----------~----~----~----~------~----~------~--~---