Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
subchen committed May 24, 2017
1 parent bd1562f commit c9420ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion document.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
package xmldom

import "bytes"
import (
"bytes"
)

const (
DEFAULT_XML_HEADER = `<?xml version="1.0" encoding="UTF-8"?>`
)

type Document struct {
ProcInst string
Expand Down
2 changes: 1 addition & 1 deletion dom.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func Parse(r io.Reader) (*Document, error) {

func NewDocument(nodeName string) *Document {
d := &Document{
ProcInst: `<?xml version="1.0" encoding="UTF-8"?>`,
ProcInst: DEFAULT_XML_HEADER,
Root: NewNode(nodeName),
}
d.Root.Document = d
Expand Down

0 comments on commit c9420ec

Please sign in to comment.