diff --git a/document.go b/document.go index 747ee21..3811cee 100644 --- a/document.go +++ b/document.go @@ -25,16 +25,16 @@ package xmlx import ( + "bytes" + "encoding/xml" "errors" - "os" + "fmt" + "go-charset.googlecode.com/hg/charset" "io" "io/ioutil" + "net/http" + "os" "strings" - "bytes" - "xml" - "fmt" - "http" - "go-charset.googlecode.com/hg/charset" ) // represents a single XML document. diff --git a/entitymap.go b/entitymap.go index e0aded2..0337ccc 100644 --- a/entitymap.go +++ b/entitymap.go @@ -18,9 +18,9 @@ package xmlx import ( "fmt" - "utf8" "regexp" "strconv" + "unicode/utf8" ) var reg_entnumeric = regexp.MustCompile("^&#[0-9]+;$") diff --git a/node.go b/node.go index 52d33e6..63e6f76 100644 --- a/node.go +++ b/node.go @@ -5,8 +5,8 @@ package xmlx import ( - "xml" "bytes" + "encoding/xml" "fmt" "strconv" )