Documentation
¶
Index ¶
- type Address
- type Attribute
- type Bookmark
- type Bookmarks
- type Childof
- type Childref
- type Citation
- type Citationref
- type Citations
- type Coord
- type Created
- type Database
- type Database171
- type Database172
- type Daterange
- type Datespan
- type Datestr
- type Dateval
- type Event
- type Eventref
- type Events
- type Families
- type Family
- type Father
- type File
- type Header
- type LdsOrd
- type Location
- type Map
- type Mother
- type Name
- type NameFormat
- type Namemaps
- type Note
- type Noteref
- type Notes
- type Object
- type Objects
- type Objref
- type Parentin
- type People
- type Person
- type Personref
- type Place
- type Placeobj
- type Placeref
- type Places
- type Pname
- type Range
- type Region
- type Rel
- type Reporef
- type Repositories
- type Repository
- type Researcher
- type SealedTo
- type Source
- type Sourceref
- type Sources
- type Srcattribute
- type Status
- type Style
- type Surname
- type Tag
- type Tagref
- type Tags
- type Temple
- type Url
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct {
Daterange *Daterange `xml:"daterange,omitempty"`
Datespan *Datespan `xml:"datespan,omitempty"`
Dateval *Dateval `xml:"dateval,omitempty"`
Datestr *Datestr `xml:"datestr,omitempty"`
Street *string `xml:"street,omitempty"`
Locality *string `xml:"locality,omitempty"`
City *string `xml:"city,omitempty"`
County *string `xml:"county,omitempty"`
State *string `xml:"state,omitempty"`
Country *string `xml:"country,omitempty"`
Postal *string `xml:"postal,omitempty"`
Phone *string `xml:"phone,omitempty"`
Noteref []Noteref `xml:"noteref,omitempty"`
Citationref []Citationref `xml:"citationref,omitempty"`
}
type Attribute ¶
type Attribute struct {
Priv *bool `xml:"priv,attr,omitempty"`
Type string `xml:"type,attr"`
Value string `xml:"value,attr"`
Citationref []Citationref `xml:"citationref,omitempty"`
}
type Citation ¶
type Citation struct {
ID *string `xml:"id,attr,omitempty"`
Handle string `xml:"handle,attr"`
Priv *bool `xml:"priv,attr,omitempty"`
Change string `xml:"change,attr"`
Daterange *Daterange `xml:"daterange,omitempty"`
Datespan *Datespan `xml:"datespan,omitempty"`
Dateval *Dateval `xml:"dateval,omitempty"`
Datestr *Datestr `xml:"datestr,omitempty"`
Page *string `xml:"page,omitempty"`
Confidence string `xml:"confidence"`
Noteref []Noteref `xml:"noteref,omitempty"`
Objref []Objref `xml:"objref,omitempty"`
Srcattribute []Srcattribute `xml:"srcattribute,omitempty"`
Sourceref *Sourceref `xml:"sourceref,omitempty"`
Tagref []Tagref `xml:"tagref,omitempty"`
}
type Citationref ¶
type Citationref struct {
Hlink string `xml:"hlink,attr"`
}
type Database ¶
type Database struct {
Header Header `xml:"header"`
NameFormats []NameFormat `xml:"name-formats>format"`
Tags *Tags `xml:"tags,omitempty"`
Events *Events `xml:"events,omitempty"`
People *People `xml:"people,omitempty"`
Families *Families `xml:"families,omitempty"`
Citations *Citations `xml:"citations,omitempty"`
Sources *Sources `xml:"sources,omitempty"`
Places *Places `xml:"places,omitempty"`
Objects *Objects `xml:"objects,omitempty"`
Repositories *Repositories `xml:"repositories,omitempty"`
Notes *Notes `xml:"notes,omitempty"`
Bookmarks *Bookmarks `xml:"bookmarks,omitempty"`
Namemaps *Namemaps `xml:"namemaps,omitempty"`
}
Database is the top-level container for a Gramps XML export. It supports schema versions 1.7.1 and 1.7.2.
func (*Database) UnmarshalXML ¶ added in v0.0.3
type Database171 ¶ added in v0.0.3
type Database171 struct {
XMLName xml.Name `xml:"http://gramps-project.org/xml/1.7.1/ database"`
Header Header `xml:"header"`
NameFormats []NameFormat `xml:"name-formats>format"`
Tags *Tags `xml:"tags,omitempty"`
Events *Events `xml:"events,omitempty"`
People *People `xml:"people,omitempty"`
Families *Families `xml:"families,omitempty"`
Citations *Citations `xml:"citations,omitempty"`
Sources *Sources `xml:"sources,omitempty"`
Places *Places `xml:"places,omitempty"`
Objects *Objects `xml:"objects,omitempty"`
Repositories *Repositories `xml:"repositories,omitempty"`
Notes *Notes `xml:"notes,omitempty"`
Bookmarks *Bookmarks `xml:"bookmarks,omitempty"`
Namemaps *Namemaps `xml:"namemaps,omitempty"`
}
Database171 is the versioned XML element for Gramps XML schema 1.7.1. Use to decode or encode XML in this exact schema version.
type Database172 ¶ added in v0.0.3
type Database172 struct {
XMLName xml.Name `xml:"http://gramps-project.org/xml/1.7.2/ database"`
Header Header `xml:"header"`
NameFormats []NameFormat `xml:"name-formats>format"`
Tags *Tags `xml:"tags,omitempty"`
Events *Events `xml:"events,omitempty"`
People *People `xml:"people,omitempty"`
Families *Families `xml:"families,omitempty"`
Citations *Citations `xml:"citations,omitempty"`
Sources *Sources `xml:"sources,omitempty"`
Places *Places `xml:"places,omitempty"`
Objects *Objects `xml:"objects,omitempty"`
Repositories *Repositories `xml:"repositories,omitempty"`
Notes *Notes `xml:"notes,omitempty"`
Bookmarks *Bookmarks `xml:"bookmarks,omitempty"`
Namemaps *Namemaps `xml:"namemaps,omitempty"`
}
Database172 is the versioned XML element for Gramps XML schema 1.7.2. Use to decode or encode XML in this exact schema version.
type Event ¶
type Event struct {
ID *string `xml:"id,attr,omitempty"`
Handle string `xml:"handle,attr"`
Priv *bool `xml:"priv,attr,omitempty"`
Change string `xml:"change,attr"`
Type *string `xml:"type"`
Daterange *Daterange `xml:"daterange,omitempty"`
Datespan *Datespan `xml:"datespan,omitempty"`
Dateval *Dateval `xml:"dateval,omitempty"`
Datestr *Datestr `xml:"datestr,omitempty"`
Place *Place `xml:"place,omitempty"`
Cause *string `xml:"cause,omitempty"`
Description *string `xml:"description,omitempty"`
Attribute []Attribute `xml:"attribute,omitempty"`
Noteref []Noteref `xml:"noteref,omitempty"`
Citationref []Citationref `xml:"citationref,omitempty"`
Objref []Objref `xml:"objref,omitempty"`
Tagref []Tagref `xml:"tagref,omitempty"`
}
type Family ¶
type Family struct {
ID *string `xml:"id,attr,omitempty"`
Handle string `xml:"handle,attr"`
Priv *bool `xml:"priv,attr,omitempty"`
Change string `xml:"change,attr"`
Rel *Rel `xml:"rel,omitempty"`
Father *Father `xml:"father,omitempty"`
Mother *Mother `xml:"mother,omitempty"`
Eventref []Eventref `xml:"eventref,omitempty"`
LdsOrd []LdsOrd `xml:"lds_ord,omitempty"`
Objref []Objref `xml:"objref,omitempty"`
Childref []Childref `xml:"childref,omitempty"`
Attribute []Attribute `xml:"attribute,omitempty"`
Noteref []Noteref `xml:"noteref,omitempty"`
Citationref []Citationref `xml:"citationref,omitempty"`
Tagref []Tagref `xml:"tagref,omitempty"`
}
type Header ¶
type Header struct {
Created Created `xml:"created"`
Researcher *Researcher `xml:"researcher,omitempty"`
Mediapath *string `xml:"mediapath,omitempty"`
}
type LdsOrd ¶
type LdsOrd struct {
Priv *bool `xml:"priv,attr,omitempty"`
Type string `xml:"type,attr"`
Daterange *Daterange `xml:"daterange,omitempty"`
Datespan *Datespan `xml:"datespan,omitempty"`
Dateval *Dateval `xml:"dateval,omitempty"`
Datestr *Datestr `xml:"datestr,omitempty"`
Temple *Temple `xml:"temple,omitempty"`
Place *Place `xml:"place,omitempty"`
Status *Status `xml:"status,omitempty"`
SealedTo *SealedTo `xml:"sealed_to,omitempty"`
Noteref []Noteref `xml:"noteref,omitempty"`
Citationref []Citationref `xml:"citationref,omitempty"`
}
type Location ¶
type Location struct {
Street *string `xml:"street,attr,omitempty"`
Locality *string `xml:"locality,attr,omitempty"`
City *string `xml:"city,attr,omitempty"`
Parish *string `xml:"parish,attr,omitempty"`
County *string `xml:"county,attr,omitempty"`
State *string `xml:"state,attr,omitempty"`
Country *string `xml:"country,attr,omitempty"`
Postal *string `xml:"postal,attr,omitempty"`
Phone *string `xml:"phone,attr,omitempty"`
}
type Name ¶
type Name struct {
Alt *bool `xml:"alt,attr,omitempty"`
Type *string `xml:"type,attr,omitempty"`
Priv *bool `xml:"priv,attr,omitempty"`
Sort *string `xml:"sort,attr,omitempty"`
Display *string `xml:"display,attr,omitempty"`
First *string `xml:"first,omitempty"`
Call *string `xml:"call,omitempty"`
Suffix *string `xml:"suffix,omitempty"`
Title *string `xml:"title,omitempty"`
Nick *string `xml:"nick,omitempty"`
Familynick *string `xml:"familynick,omitempty"`
Group *string `xml:"group,omitempty"`
Surname []Surname `xml:"surname"`
Daterange *Daterange `xml:"daterange,omitempty"`
Datespan *Datespan `xml:"datespan,omitempty"`
Dateval *Dateval `xml:"dateval,omitempty"`
Datestr *Datestr `xml:"datestr,omitempty"`
Noteref []Noteref `xml:"noteref,omitempty"`
Citationref []Citationref `xml:"citationref,omitempty"`
}
type NameFormat ¶
type Note ¶
type Note struct {
ID *string `xml:"id,attr,omitempty"`
Handle string `xml:"handle,attr"`
Priv *bool `xml:"priv,attr,omitempty"`
Change string `xml:"change,attr"`
Format *bool `xml:"format,attr,omitempty"`
Type string `xml:"type,attr"`
Text string `xml:"text"`
Style []Style `xml:"style,omitempty"`
Tagref []Tagref `xml:"tagref,omitempty"`
}
type Object ¶
type Object struct {
ID *string `xml:"id,attr,omitempty"`
Handle string `xml:"handle,attr"`
Priv *bool `xml:"priv,attr,omitempty"`
Change string `xml:"change,attr"`
File File `xml:"file"`
Attribute []Attribute `xml:"attribute,omitempty"`
Noteref []Noteref `xml:"noteref,omitempty"`
Daterange *Daterange `xml:"daterange,omitempty"`
Datespan *Datespan `xml:"datespan,omitempty"`
Dateval *Dateval `xml:"dateval,omitempty"`
Datestr *Datestr `xml:"datestr,omitempty"`
Citationref []Citationref `xml:"citationref,omitempty"`
Tagref []Tagref `xml:"tagref,omitempty"`
}
type Person ¶
type Person struct {
ID *string `xml:"id,attr,omitempty"`
Handle string `xml:"handle,attr"`
Priv *bool `xml:"priv,attr,omitempty"`
Change string `xml:"change,attr"`
Gender string `xml:"gender"`
Name []Name `xml:"name,omitempty"`
Eventref []Eventref `xml:"eventref,omitempty"`
LdsOrd []LdsOrd `xml:"lds_ord,omitempty"`
Objref []Objref `xml:"objref,omitempty"`
Address []Address `xml:"address,omitempty"`
Attribute []Attribute `xml:"attribute,omitempty"`
Url []Url `xml:"url,omitempty"`
Childof []Childof `xml:"childof,omitempty"`
Parentin []Parentin `xml:"parentin,omitempty"`
Personref []Personref `xml:"personref,omitempty"`
Noteref []Noteref `xml:"noteref,omitempty"`
Citationref []Citationref `xml:"citationref,omitempty"`
Tagref []Tagref `xml:"tagref,omitempty"`
}
type Personref ¶
type Personref struct {
Hlink string `xml:"hlink,attr"`
Priv *bool `xml:"priv,attr,omitempty"`
Rel string `xml:"rel,attr"`
Citationref []Citationref `xml:"citationref,omitempty"`
Noteref []Noteref `xml:"noteref,omitempty"`
}
type Placeobj ¶
type Placeobj struct {
ID *string `xml:"id,attr,omitempty"`
Handle string `xml:"handle,attr"`
Priv *bool `xml:"priv,attr,omitempty"`
Change string `xml:"change,attr"`
Type string `xml:"type,attr"`
Ptitle *string `xml:"ptitle,omitempty"`
Pname []Pname `xml:"pname"`
Code *string `xml:"code,omitempty"`
Coord *Coord `xml:"coord,omitempty"`
Placeref []Placeref `xml:"placeref,omitempty"`
Location []Location `xml:"location,omitempty"`
Url []Url `xml:"url,omitempty"`
Objref []Objref `xml:"objref,omitempty"`
Noteref []Noteref `xml:"noteref,omitempty"`
Citationref []Citationref `xml:"citationref,omitempty"`
Tagref []Tagref `xml:"tagref,omitempty"`
}
type Repositories ¶
type Repositories struct {
Repository []Repository `xml:"repository,omitempty"`
}
type Repository ¶
type Repository struct {
ID *string `xml:"id,attr,omitempty"`
Handle string `xml:"handle,attr"`
Priv *bool `xml:"priv,attr,omitempty"`
Change string `xml:"change,attr"`
Rname string `xml:"rname"`
Type string `xml:"type"`
Address []Address `xml:"address,omitempty"`
Url []Url `xml:"url,omitempty"`
Noteref []Noteref `xml:"noteref,omitempty"`
Tagref []Tagref `xml:"tagref,omitempty"`
}
type Researcher ¶
type Researcher struct {
Resname *string `xml:"resname,omitempty"`
Resaddr *string `xml:"resaddr,omitempty"`
Reslocality *string `xml:"reslocality,omitempty"`
Rescity *string `xml:"rescity,omitempty"`
Resstate *string `xml:"resstate,omitempty"`
Rescountry *string `xml:"rescountry,omitempty"`
Respostal *string `xml:"respostal,omitempty"`
Resphone *string `xml:"resphone,omitempty"`
Resemail *string `xml:"resemail,omitempty"`
}
type Source ¶
type Source struct {
ID *string `xml:"id,attr,omitempty"`
Handle string `xml:"handle,attr"`
Priv *bool `xml:"priv,attr,omitempty"`
Change string `xml:"change,attr"`
Stitle *string `xml:"stitle,omitempty"`
Spubinfo *string `xml:"spubinfo,omitempty"`
Sabbrev *string `xml:"sabbrev,omitempty"`
Noteref []Noteref `xml:"noteref,omitempty"`
Objref []Objref `xml:"objref,omitempty"`
Srcattribute []Srcattribute `xml:"srcattribute,omitempty"`
Reporef []Reporef `xml:"reporef,omitempty"`
Tagref []Tagref `xml:"tagref,omitempty"`
}
type Srcattribute ¶
Click to show internal directories.
Click to hide internal directories.