On Wed, Dec 22, 2004 at 09:51:23AM +0100, Ernst Bunders wrote:
> would that be files that can be handled by the xml importer?
> 
> Ernst

I have no idea what xml importer you are talking about.


I mean the files that are read from the datasource references
in your application.xml file when you install the application:

For instance, in the MyNews application, you have a file called
MyNews.xml, which contains this paragraph:


<datasourcelist>
        <datasource builder="mags"     path="MyNews/mags.xml" />
        <datasource builder="news"     path="MyNews/news.xml" />
        <datasource builder="people"   path="MyNews/people.xml" />
        <datasource builder="urls"     path="MyNews/urls.xml" />
        <datasource builder="attachments"  path="MyNews/attachments.xml" />
        <datasource builder="images"   path="MyNews/images.xml" />
        <!-- datasource builder="mmevents" path="MyNews/mmevents.xml" /-->
 </datasourcelist>

This inserts the data from the MyNews/*.xml files in the cloud when
you install the MyNews application.


As far as I've been able to figure out, the responsible code is in

org.mmbase.module.tools.MMAdmin.installDataSources() and 
src.org.mmbase.util.XMLNodeReader


Joost.



> 
> > -----Oorspronkelijk bericht-----
> > Van: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] Namens Joost Diepenmaat
> > Verzonden: maandag 20 december 2004 21:07
> > Aan: [email protected]
> > Onderwerp: [Developers] csv2mmbasesource tool
> > 
> > 
> > Hi everybody.
> > 
> > I just want to mention that I made a small perl script to 
> > convert CSV files to mmbase datasource xml files. 
> > 
> > I tried to make it as generic as possible, and it should work 
> > for all csv files you can throw at it, so please let me know 
> > if it doesn't work for you.
> > 
> > Funny thing I learned: there is a CSV file reader in the 
> > mmbase code but it's called CVSReader.java, and that makes it 
> > quite hard to find :-)
> >              ^^
> > 
> > Anyway, with this script you can convert everything to 
> > "standard mmbase xml" *cough* datasource files, and 
> > distribute them with your application, 
> > instead of having to make your own import jsp page or 
> > something like that.
> > 
> > Oh, yes - get it here: 
> > http://zeekat.nl/downloads/csv2mmbasesource/index.html
> > 
> > 
> > Greetings,
> > Joost Diepenmaat
> > Zeekat Softwareontwikkeling
> > 
> > _______________________________________________
> > Developers mailing list
> > [email protected] 
> > http://lists.mmbase.org/mailman/listinfo/developers
> > 
> _______________________________________________
> Developers mailing list
> [email protected]
> http://lists.mmbase.org/mailman/listinfo/developers
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to