示例#1
0
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
}
示例#2
0
// htmlNodeDump
func (doc *HTMLDocument) NodeDump(buf *Buffer, cur *HTMLNode) int {
	return int(C.htmlNodeDump(buf.Ptr, doc.Ptr, cur.Ptr))
}