From 29e567008aa42fed4ab475c1e826ca73f75d225e Mon Sep 17 00:00:00 2001 From: Brent Adamson <6355304+brentadamson@users.noreply.github.com> Date: Sun, 25 Oct 2020 14:59:51 -0600 Subject: [PATCH] Update document.go --- xml/document.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xml/document.go b/xml/document.go index 5645239f..cf2ecda7 100644 --- a/xml/document.go +++ b/xml/document.go @@ -327,7 +327,8 @@ func (document *XmlDocument) CreateTextNode(data string) (text *TextNode) { dataPtr := unsafe.Pointer(&dataBytes[0]) nodePtr := C.xmlNewText((*C.xmlChar)(dataPtr)) if nodePtr != nil { - nodePtr.doc = (*_Ctype_struct__xmlDoc)(document.DocPtr()) + //nodePtr.doc = (*_Ctype_struct__xmlDoc)(document.DocPtr()) + nodePtr.doc = (*C.xmlDoc)(document.DocPtr()) text = NewNode(unsafe.Pointer(nodePtr), document).(*TextNode) } return