func HtmlNodeDump(n unsafe.Pointer) string { buf := C.xmlBufferCreate() C.htmlNodeDump(buf, nil, C.xmlNodePtr(n)) cstr := C.xmlBufferContent(buf) str := C.GoString(xmlCharToC(cstr)) C.xmlBufferFree(buf) return str }
// htmlNodeDump func (doc *HTMLDocument) NodeDump(buf *Buffer, cur *HTMLNode) int { return int(C.htmlNodeDump(buf.Ptr, doc.Ptr, cur.Ptr)) }