From caedd064c08a47d517cd0a4396f7a4ef45768eb1 Mon Sep 17 00:00:00 2001 From: sbandadd <62265954+sbandadd@users.noreply.github.com> Date: Sat, 27 May 2023 00:02:47 -0700 Subject: [PATCH] Update document.go --- xml/document.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/document.go b/xml/document.go index 5645239f..d0986b0c 100644 --- a/xml/document.go +++ b/xml/document.go @@ -327,7 +327,7 @@ 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 = (*C.xmlDoc)(document.DocPtr()) text = NewNode(unsafe.Pointer(nodePtr), document).(*TextNode) } return