@ -31,6 +31,12 @@ type DocProperties struct {
Version string
}
// decodeDcTerms directly maps the DCMI metadata terms for the coreProperties.
type decodeDcTerms struct {
Text string ` xml:",chardata" `
Type string ` xml:"http://www.w3.org/2001/XMLSchema-instance type,attr" `
}
// decodeCoreProperties directly maps the root element for a part of this
// content type shall coreProperties. In order to solve the problem that the
// label structure is changed after serialization and deserialization, two
@ -47,19 +53,19 @@ type decodeCoreProperties struct {
Language string ` xml:"http://purl.org/dc/elements/1.1/ language,omitempty" `
Identifier string ` xml:"http://purl.org/dc/elements/1.1/ identifier,omitempty" `
Revision string ` xml:"revision,omitempty" `
Created struct {
Text string ` xml:",chardata" `
Type string ` xml:"http://www.w3.org/2001/XMLSchema-instance type,attr" `
} ` xml:"http://purl.org/dc/terms/ created" `
Modified struct {
Text string ` xml:",chardata" `
Type string ` xml:"http://www.w3.org/2001/XMLSchema-instance type,attr" `
} ` xml:"http://purl.org/dc/terms/ modified" `
Created * decodeDcTerms ` xml:"http://purl.org/dc/terms/ created" `
Modified * decodeDcTerms ` xml:"http://purl.org/dc/terms/ modified" `
ContentStatus string ` xml:"contentStatus,omitempty" `
Category string ` xml:"category,omitempty" `
Version string ` xml:"version,omitempty" `
}
// xlsxDcTerms directly maps the DCMI metadata terms for the coreProperties.
type xlsxDcTerms struct {
Text string ` xml:",chardata" `
Type string ` xml:"xsi:type,attr" `
}
// xlsxCoreProperties directly maps the root element for a part of this
// content type shall coreProperties.
type xlsxCoreProperties struct {
@ -77,14 +83,8 @@ type xlsxCoreProperties struct {
Language string ` xml:"dc:language,omitempty" `
Identifier string ` xml:"dc:identifier,omitempty" `
Revision string ` xml:"revision,omitempty" `
Created struct {
Text string ` xml:",chardata" `
Type string ` xml:"xsi:type,attr" `
} ` xml:"dcterms:created" `
Modified struct {
Text string ` xml:",chardata" `
Type string ` xml:"xsi:type,attr" `
} ` xml:"dcterms:modified" `
Created * xlsxDcTerms ` xml:"dcterms:created" `
Modified * xlsxDcTerms ` xml:"dcterms:modified" `
ContentStatus string ` xml:"contentStatus,omitempty" `
Category string ` xml:"category,omitempty" `
Version string ` xml:"version,omitempty" `