1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-08 17:20:26 +08:00

add xmlns wp

This commit is contained in:
源文雨
2023-02-09 12:17:03 +08:00
parent ae07360d5e
commit 20d91d61a4
5 changed files with 14 additions and 8 deletions

View File

@@ -3,8 +3,9 @@ package docxlib
import "encoding/xml"
const (
XMLNS_W = `http://schemas.openxmlformats.org/wordprocessingml/2006/main`
XMLNS_R = `http://schemas.openxmlformats.org/officeDocument/2006/relationships`
XMLNS_W = `http://schemas.openxmlformats.org/wordprocessingml/2006/main`
XMLNS_R = `http://schemas.openxmlformats.org/officeDocument/2006/relationships`
XMLNS_WP = `http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing`
)
type Body struct {
@@ -16,5 +17,6 @@ type Document struct {
XMLName xml.Name `xml:"http://schemas.openxmlformats.org/wordprocessingml/2006/main document"`
XMLW string `xml:"xmlns:w,attr"`
XMLR string `xml:"xmlns:r,attr"`
XMLWP string `xml:"xmlns:wp,attr"`
Body *Body
}