Re: DataMap

From: Andrei Adamchik (aadamchi..obox.com)
Date: Sun May 13 2001 - 22:54:37 EDT


Ok, quick research shows that this is due to the new DTD updated this
afternoon. Among other changes I noticed a line

> name CDATA #REQUIRED

on obj-relationship tags. All you need to do is add
name="dummy" attribute to all obj-relationship tags in your map, and it
should be working..

Andrei

At 10:33 PM 5/13/2001 -0400, Andriy Shapochka wrote:
>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
> >
> >

Andrei



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