mirror of
https://github.com/Theodor-Springmann-Stiftung/lenz-web.git
synced 2025-10-29 01:05:32 +00:00
42 lines
826 B
Go
42 lines
826 B
Go
package xmlmodels
|
|
|
|
import "encoding/xml"
|
|
|
|
type MetaRoot struct {
|
|
XMLName xml.Name `xml:"opus"`
|
|
Metas []Meta `xml:"letterDesc"`
|
|
}
|
|
|
|
func (m MetaRoot) Children() []Meta {
|
|
return m.Metas
|
|
}
|
|
|
|
type DefinitionsRoot struct {
|
|
XMLName xml.Name `xml:"definitions"`
|
|
Persons PersonDefs `xml:"personDefs"`
|
|
Locations LocationDefs `xml:"locationDefs"`
|
|
Apparatuses AppDefs `xml:"appDefs"`
|
|
}
|
|
|
|
type PersonDefs struct {
|
|
Persons []PersonDef `xml:"personDef"`
|
|
}
|
|
|
|
type LocationDefs struct {
|
|
Locations []LocationDef `xml:"locationDef"`
|
|
}
|
|
|
|
type AppDefs struct {
|
|
Apps []AppDef `xml:"appDef"`
|
|
}
|
|
|
|
type TraditionsRoot struct {
|
|
XMLName xml.Name `xml:"traditions"`
|
|
Traditions []Tradition `xml:"tradition"`
|
|
}
|
|
|
|
type DocumentsRoot struct {
|
|
XMLName xml.Name `xml:"document"`
|
|
Documents []Letter `xml:"letterText"`
|
|
}
|