c14n.pxd 1.1 KB

1234567891011121314151617181920212223242526
  1. from lxml.includes.tree cimport xmlDoc, xmlOutputBuffer, xmlChar
  2. from lxml.includes.xpath cimport xmlNodeSet
  3. cdef extern from "libxml/c14n.h":
  4. cdef int xmlC14NDocDumpMemory(xmlDoc* doc,
  5. xmlNodeSet* nodes,
  6. int exclusive,
  7. xmlChar** inclusive_ns_prefixes,
  8. int with_comments,
  9. xmlChar** doc_txt_ptr) nogil
  10. cdef int xmlC14NDocSave(xmlDoc* doc,
  11. xmlNodeSet* nodes,
  12. int exclusive,
  13. xmlChar** inclusive_ns_prefixes,
  14. int with_comments,
  15. char* filename,
  16. int compression) nogil
  17. cdef int xmlC14NDocSaveTo(xmlDoc* doc,
  18. xmlNodeSet* nodes,
  19. int exclusive,
  20. xmlChar** inclusive_ns_prefixes,
  21. int with_comments,
  22. xmlOutputBuffer* buffer) nogil