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