Skip to content

Commit

Permalink
Merge pull request jbowtie#1 from sbandadd/sbandadd-patch-1
Browse files Browse the repository at this point in the history
Update document.go
  • Loading branch information
sbandadd authored May 27, 2023
2 parents a1a8281 + caedd06 commit e6d1088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xml/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6d1088

Please sign in to comment.