go-xmlpath / xmlpath

Strict subset of the XPath specification for the Go language.
http://gopkg.in/xmlpath.v2
Other
115 stars 37 forks source link

No error when parsing empty string #18

Open ottob opened 8 years ago

ottob commented 8 years ago

root, err := xmlpath.Parse(bytes.NewBufferString(""))

I expected this to fail? But I get err == nil.

http://stackoverflow.com/questions/376306/is-empty-string-valid-xml

Should I try to create a PR?

ottob commented 8 years ago

Running latest gopkg.in/xmlpath.v1