func (d *Document) SetNodeValue(s string) {
}
SetNodeValue is a no op for document
package dom
import (
	"github.com/lestrrat-go/libxml2/clib"
	"github.com/lestrrat-go/libxml2/types"
	"github.com/pkg/errors"
)
func CreateDocument() *Document {
	return NewDocument("1.0", "")
}
func NewDocument(version, encoding string) *Document {
	ptr := clib.XMLCreateDocument(version, encoding)
	return WrapDocument(ptr)
}
func (d *Document) Pointer() uintptr {
	return d.ptr
}
func (d *Document) AutoFree() {
	if !d.mortal {
		return
	}
	d.Free()
}
func (d *Document) MakeMortal() {
	d.mortal = true
}
func (d *Document) MakePersistent() {
	d.mortal = false
}
func (d *Document) IsSameNode(n types.Node) bool {
	return d.ptr == n.Pointer()
}
func (d *Document) HasChildNodes() bool {
	_, err := d.DocumentElement()
	return err != nil
}
func (d *Document) FirstChild() (types.Node, error) {
	root, err := d.DocumentElement()
	if err != nil {
		return nil, errors.Wrap(err, "failed to get document element")
	}
	return root, nil
}
func (d *Document) LastChild() (types.Node, error) {
	root, err := d.DocumentElement()
	if err != nil {
		return nil, errors.Wrap(err, "failed to get document element")
	}
	return root, nil
}
func (d *Document) NextSibling() (types.Node, error) {
	return nil, errors.New("document has no siblings")
}
func (d *Document) PreviousSibling() (types.Node, error) {
	return nil, errors.New("document has no siblings")
}
func (d *Document) NodeName() string {
	return ""
}
func (d *Document) SetNodeName(s string) {
}
func (d *Document) NodeValue() string {
	return ""
}