Re: DataMap

From: Andriy Shapochka (ashapochk..otmail.com)
Date: Sun May 13 2001 - 22:33:24 EDT


Oh, I don't know why but MapLoaderImpl throws an SAXParser exception while
parsing it.
I just use the following code:

DataMap loadDataMap(File file) throws IOException, DataMapException {
    MapLoader loader = new MapLoaderImpl();
    FileReader fr = new FileReader(file);
    InputSource in = new InputSource(new BufferedReader(fr,4096));
    currentDataMap = loader.loadDataMap(in);
    return currentDataMap;
 }

Yet it doesn't work for some reason.

Andriy.

----- Original Message -----
From: "Andrei Adamchik" <aadamchi..obox.com>
To: "Object Style" <cayenne-deve..bjectstyle.org>
Sent: Sunday, May 13, 2001 10:31 PM
Subject: Re: DataMap

> The one under "ObjectStyle/cayenne/doc/datamapsample.xml" should work (it
> used to have some bugs before, but MapLoaderImpl loaded it with no
problems)
>
>
> At 09:51 PM 5/13/2001 -0400, Andriy Shapochka wrote:
> >Misha, could you please create a DataMap xml file sample which might be
> >loaded via the MapLoaderImpl class. I need it very much to test the GUI
tool.
> >
> >Great thanks in advance.
> >Andriy.
>
> Andrei
>
>



This archive was generated by hypermail 2b30 : Sat Aug 04 2001 - 16:21:24 EDT