From: jerome <rom...@ya...> - 2010-08-01 16:19:49
|
> How do I refer to the different evens/persons and so on? Maybe <eventref hlink="Person's ID"> ? <!ELEMENT eventref (attribute*,noteref*)> <!ATTLIST eventref hlink IDREF #REQUIRED priv (0|1) #IMPLIED role CDATA #IMPLIED --- En date de : Dim 1.8.10, Stein Erik Berget <gr...@be...> a écrit : > De: Stein Erik Berget <gr...@be...> > Objet: Re: [Gramps-users] Re : Importing GRAMPS xml > À: "gra...@li..." <gra...@li...> > Date: Dimanche 1 août 2010, 17h38 > On Fri, 23 Jul 2010 16:56:11 +0200, > jerome <rom...@ya...> > wrote: > > >> Which 'date' object are we talking about here? Or > if anyone > >> have a example > >> of a minimal XML file that can be imported. I > don't want to > >> add the id="" > >> as I want GRAMPS to select that itself when > importing. > > > > But you are forcing/setting the DB handler value! > > OKi:-) I was under the impression that the 'handle' was the > XML file > 'internal' handle, and not the Database record Id/Primary > Key. As I can > see from http://gramps-project.org/xml/1.3.0/grampsxml.dtd the > definition > of id/handle states that they _both_ are _required_ as far > as I can see: > > > <!ELEMENT person > (gender, name*, nick?, eventref*, lds_ord*, > > objref*, address*, > attribute*, url*, childof*, > > parentin*, > personref*, noteref*, sourceref*)> > <!ATTLIST person > > id CDATA > #REQUIRED > > handle ID > #REQUIRED > > priv (0|1) #IMPLIED > marker CDATA > #IMPLIED > > change CDATA #REQUIRED > > > > I should of course have checked this before... Sorry. > > > > You can see some samples on : > > http://gramps.svn.sourceforge.net/viewvc/gramps/branches/maintenance/gramps32/example/gramps/ > > http://gramps-project.org/wiki/index.php?title=Generate_XML#How_do_I_uncompress_the_file.3F > > I've seen those, and created my own export out of a small > sample tree. But > if you only set the 'id', as I understand from you is the > 'key' you can > set yourself. How do I refer to the different evens/persons > and so on? > > -- > Stein Erik > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use > the > Plug-In Development Kit to bring their C/C++ apps to Palm > for a share > of $1 Million in cash or HP Products. Visit us here for > more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Gramps-users mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-users > |