1 Star 2 Fork 1

wx-fork / unioffice

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
CT_Empty.go 1.35 KB
Copy Edit Raw Blame History
Todd authored 2017-09-23 08:28 . schema: rename wordprocessingml to wml
// Copyright 2017 Baliance. All rights reserved.
//
// DO NOT EDIT: generated by gooxml ECMA-376 generator
//
// Use of this source code is governed by the terms of the Affero GNU General
// Public License version 3.0 as published by the Free Software Foundation and
// appearing in the file LICENSE included in the packaging of this file. A
// commercial license can be purchased by contacting sales@baliance.com.
package wml
import (
"encoding/xml"
"fmt"
)
type CT_Empty struct {
}
func NewCT_Empty() *CT_Empty {
ret := &CT_Empty{}
return ret
}
func (m *CT_Empty) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
e.EncodeToken(start)
e.EncodeToken(xml.EndElement{Name: start.Name})
return nil
}
func (m *CT_Empty) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
// initialize to default
// skip any extensions we may find, but don't support
for {
tok, err := d.Token()
if err != nil {
return fmt.Errorf("parsing CT_Empty: %s", err)
}
if el, ok := tok.(xml.EndElement); ok && el.Name == start.Name {
break
}
}
return nil
}
// Validate validates the CT_Empty and its children
func (m *CT_Empty) Validate() error {
return m.ValidateWithPath("CT_Empty")
}
// ValidateWithPath validates the CT_Empty and its children, prefixing error messages with path
func (m *CT_Empty) ValidateWithPath(path string) error {
return nil
}
1
https://gitee.com/wx-fork/unioffice.git
git@gitee.com:wx-fork/unioffice.git
wx-fork
unioffice
unioffice
v0.7.1

Search

53164aa7 5694891 3bd8fe86 5694891