func Parse(buf []byte, o ...parser.Option) (types.Document, error) {
	p := parser.New(o...)
	return p.Parse(buf)
}
Parse parses the given buffer and returns a Document.
package libxml2
import (
	"io"
	"github.com/lestrrat-go/libxml2/parser"
	"github.com/lestrrat-go/libxml2/types"
)