This commit is contained in:
Simon Martens
2025-03-05 16:41:39 +01:00
commit e19fd47c17
88 changed files with 9765 additions and 0 deletions

19
xmlmodels/common.go Normal file
View File

@@ -0,0 +1,19 @@
package xmlmodels
import xmlparsing "github.com/Theodor-Springmann-Stiftung/lenz-web/xml"
type RefElement struct {
Reference int `xml:"ref,attr"`
Text string `xml:",chardata"`
Cert string `xml:"cert,attr"`
}
type Date struct {
When xmlparsing.XSDDate `xml:"when,attr"`
NotBefore xmlparsing.XSDDate `xml:"notBefore,attr"`
NotAfter xmlparsing.XSDDate `xml:"notAfter,attr"`
From xmlparsing.XSDDate `xml:"from,attr"`
To xmlparsing.XSDDate `xml:"to,attr"`
Cert string `xml:"cert,attr"`
Text string `xml:",chardata"`
}