You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.1 KiB

4 years ago
  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