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.

150 lines
4.9 KiB

  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP version 4.0 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2001 The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 2.02 of the PHP license, |
  8. | that is bundled with this package in the file LICENSE, and is |
  9. | available at through the world-wide-web at |
  10. | http://www.php.net/license/2_02.txt. |
  11. | If you did not receive a copy of the PHP license and are unable to |
  12. | obtain it through the world-wide-web, please send a note to |
  13. | license@php.net so we can mail you a copy immediately. |
  14. +----------------------------------------------------------------------+
  15. | Authors: Uwe Steinmann (Uwe.Steinmann@fernuni-hagen.de |
  16. +----------------------------------------------------------------------+
  17. */
  18. /* $Id$ */
  19. #ifndef PHP_DOMXML_H
  20. #define PHP_DOMXML_H
  21. #if HAVE_DOMXML
  22. #include <libxml/parser.h>
  23. #if defined(LIBXML_XPATH_ENABLED)
  24. #include <libxml/xpath.h>
  25. #endif
  26. #if defined(LIBXML_XPTR_ENABLED)
  27. #include <libxml/xpointer.h>
  28. #endif
  29. extern zend_module_entry domxml_module_entry;
  30. #define domxml_module_ptr &domxml_module_entry
  31. /* directory functions */
  32. PHP_MINIT_FUNCTION(domxml);
  33. PHP_RINIT_FUNCTION(domxml);
  34. PHP_MINFO_FUNCTION(domxml);
  35. PHP_FUNCTION(domxml_version);
  36. PHP_FUNCTION(xmldoc);
  37. PHP_FUNCTION(xmldocfile);
  38. PHP_FUNCTION(xmltree);
  39. PHP_FUNCTION(domxml_new_xmldoc);
  40. /* Class Document methods */
  41. PHP_FUNCTION(domxml_doc_doctype);
  42. PHP_FUNCTION(domxml_doc_implementation);
  43. PHP_FUNCTION(domxml_doc_document_element);
  44. PHP_FUNCTION(domxml_doc_create_element);
  45. PHP_FUNCTION(domxml_doc_create_text_node);
  46. PHP_FUNCTION(domxml_doc_create_comment);
  47. PHP_FUNCTION(domxml_doc_create_processing_instruction);
  48. PHP_FUNCTION(domxml_doc_create_attribute);
  49. PHP_FUNCTION(domxml_doc_create_cdata_section);
  50. PHP_FUNCTION(domxml_doc_create_entity_reference);
  51. PHP_FUNCTION(domxml_doc_imported_node);
  52. PHP_FUNCTION(domxml_add_root);
  53. PHP_FUNCTION(domxml_intdtd);
  54. PHP_FUNCTION(domxml_dumpmem);
  55. /* Class DocumentType methods */
  56. PHP_FUNCTION(domxml_doctype_name);
  57. PHP_FUNCTION(domxml_doctype_entities);
  58. PHP_FUNCTION(domxml_doctype_notations);
  59. PHP_FUNCTION(domxml_doctype_public_id);
  60. PHP_FUNCTION(domxml_doctype_system_id);
  61. PHP_FUNCTION(domxml_doctype_internal_subset);
  62. /* Class Notation methods */
  63. PHP_FUNCTION(domxml_notation_public_id);
  64. PHP_FUNCTION(domxml_notation_system_id);
  65. /* Class Node methods */
  66. PHP_FUNCTION(domxml_node_attributes);
  67. PHP_FUNCTION(domxml_node_children);
  68. PHP_FUNCTION(domxml_node_first_child);
  69. PHP_FUNCTION(domxml_node_last_child);
  70. PHP_FUNCTION(domxml_node_next_sibling);
  71. PHP_FUNCTION(domxml_node_previous_sibling);
  72. PHP_FUNCTION(domxml_node_owner_document);
  73. PHP_FUNCTION(domxml_node_insert_before);
  74. PHP_FUNCTION(domxml_node_append_child);
  75. PHP_FUNCTION(domxml_node_add_child);
  76. PHP_FUNCTION(domxml_node_has_attributes);
  77. PHP_FUNCTION(domxml_node_has_child_nodes);
  78. PHP_FUNCTION(domxml_node_parent);
  79. PHP_FUNCTION(domxml_node_prefix);
  80. PHP_FUNCTION(domxml_node);
  81. PHP_FUNCTION(domxml_clone_node);
  82. PHP_FUNCTION(domxml_node_unlink_node);
  83. PHP_FUNCTION(domxml_node_new_child);
  84. PHP_FUNCTION(domxml_node_set_content);
  85. PHP_FUNCTION(domxml_node_text_concat);
  86. PHP_FUNCTION(domxml_node_set_name);
  87. PHP_FUNCTION(domxml_node_name);
  88. PHP_FUNCTION(domxml_node_type);
  89. PHP_FUNCTION(domxml_node_value);
  90. PHP_FUNCTION(domxml_is_blank_node);
  91. /* Class Attribute methods */
  92. PHP_FUNCTION(domxml_attr_name);
  93. PHP_FUNCTION(domxml_attr_value);
  94. PHP_FUNCTION(domxml_attr_specified);
  95. /* Class Element methods */
  96. PHP_FUNCTION(domxml_element);
  97. PHP_FUNCTION(domxml_elem_tagname);
  98. PHP_FUNCTION(domxml_elem_get_attribute);
  99. PHP_FUNCTION(domxml_elem_set_attribute);
  100. PHP_FUNCTION(domxml_elem_remove_attribute);
  101. PHP_FUNCTION(domxml_elem_get_attribute_node);
  102. PHP_FUNCTION(domxml_elem_set_attribute_node);
  103. PHP_FUNCTION(domxml_elem_get_element_by_tagname);
  104. /* Class CData methods */
  105. PHP_FUNCTION(domxml_cdata_length);
  106. /* Class Notation methods */
  107. PHP_FUNCTION(domxml_notation_public_id);
  108. PHP_FUNCTION(domxml_notation_system_id);
  109. /* Class Entity methods */
  110. PHP_FUNCTION(domxml_entity_public_id);
  111. PHP_FUNCTION(domxml_entity_system_id);
  112. PHP_FUNCTION(domxml_entity_notation_name);
  113. /* Class ProcessingInstructions */
  114. PHP_FUNCTION(domxml_pi_target);
  115. PHP_FUNCTION(domxml_pi_data);
  116. /* Class XPathContext methods */
  117. #if defined(LIBXML_XPATH_ENABLED)
  118. PHP_FUNCTION(xpath_init);
  119. PHP_FUNCTION(xpath_new_context);
  120. PHP_FUNCTION(xpath_eval);
  121. PHP_FUNCTION(xpath_eval_expression);
  122. #endif
  123. #if defined(LIBXML_XPTR_ENABLED)
  124. PHP_FUNCTION(xptr_new_context);
  125. PHP_FUNCTION(xptr_eval);
  126. #endif
  127. PHP_FUNCTION(domxml_test);
  128. #else
  129. #define domxml_module_ptr NULL
  130. #endif /* HAVE_DOMXML */
  131. #define phpext_domxml_ptr domxml_module_ptr
  132. #endif /* _PHP_DIR_H */