pocxxeci 0.30.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pocxxeci might be problematic. Click here for more details.

Files changed (160) hide show
  1. package/LICENSE +19 -0
  2. package/Makefile +18 -0
  3. package/README.md +52 -0
  4. package/binding.gyp +81 -0
  5. package/index.d.ts +273 -0
  6. package/index.js +45 -0
  7. package/lib/bindings.js +1 -0
  8. package/lib/document.js +122 -0
  9. package/lib/element.js +82 -0
  10. package/lib/sax_parser.js +38 -0
  11. package/package.json +70 -0
  12. package/src/html_document.cc +7 -0
  13. package/src/html_document.h +18 -0
  14. package/src/libxmljs.cc +252 -0
  15. package/src/libxmljs.h +53 -0
  16. package/src/xml_attribute.cc +173 -0
  17. package/src/xml_attribute.h +40 -0
  18. package/src/xml_comment.cc +117 -0
  19. package/src/xml_comment.h +30 -0
  20. package/src/xml_document.cc +810 -0
  21. package/src/xml_document.h +67 -0
  22. package/src/xml_element.cc +565 -0
  23. package/src/xml_element.h +61 -0
  24. package/src/xml_namespace.cc +158 -0
  25. package/src/xml_namespace.h +39 -0
  26. package/src/xml_node.cc +761 -0
  27. package/src/xml_node.h +73 -0
  28. package/src/xml_pi.cc +161 -0
  29. package/src/xml_pi.h +34 -0
  30. package/src/xml_sax_parser.cc +424 -0
  31. package/src/xml_sax_parser.h +73 -0
  32. package/src/xml_syntax_error.cc +66 -0
  33. package/src/xml_syntax_error.h +25 -0
  34. package/src/xml_text.cc +320 -0
  35. package/src/xml_text.h +48 -0
  36. package/src/xml_textwriter.cc +315 -0
  37. package/src/xml_textwriter.h +62 -0
  38. package/src/xml_xpath_context.cc +70 -0
  39. package/src/xml_xpath_context.h +23 -0
  40. package/vendor/libxml/Copyright +23 -0
  41. package/vendor/libxml/DOCBparser.c +305 -0
  42. package/vendor/libxml/HTMLparser.c +7287 -0
  43. package/vendor/libxml/HTMLtree.c +1200 -0
  44. package/vendor/libxml/Makefile +2983 -0
  45. package/vendor/libxml/SAX.c +180 -0
  46. package/vendor/libxml/SAX2.c +3036 -0
  47. package/vendor/libxml/buf.c +1351 -0
  48. package/vendor/libxml/buf.h +72 -0
  49. package/vendor/libxml/c14n.c +2234 -0
  50. package/vendor/libxml/catalog.c +3828 -0
  51. package/vendor/libxml/chvalid.c +336 -0
  52. package/vendor/libxml/config.h +294 -0
  53. package/vendor/libxml/config.h.gch +0 -0
  54. package/vendor/libxml/debugXML.c +3423 -0
  55. package/vendor/libxml/dict.c +1298 -0
  56. package/vendor/libxml/elfgcchack.h +17818 -0
  57. package/vendor/libxml/enc.h +32 -0
  58. package/vendor/libxml/encoding.c +3975 -0
  59. package/vendor/libxml/entities.c +1163 -0
  60. package/vendor/libxml/error.c +998 -0
  61. package/vendor/libxml/globals.c +1126 -0
  62. package/vendor/libxml/hash.c +1146 -0
  63. package/vendor/libxml/include/libxml/DOCBparser.h +96 -0
  64. package/vendor/libxml/include/libxml/HTMLparser.h +306 -0
  65. package/vendor/libxml/include/libxml/HTMLtree.h +147 -0
  66. package/vendor/libxml/include/libxml/Makefile +725 -0
  67. package/vendor/libxml/include/libxml/Makefile.am +54 -0
  68. package/vendor/libxml/include/libxml/Makefile.in +725 -0
  69. package/vendor/libxml/include/libxml/SAX.h +173 -0
  70. package/vendor/libxml/include/libxml/SAX2.h +178 -0
  71. package/vendor/libxml/include/libxml/c14n.h +128 -0
  72. package/vendor/libxml/include/libxml/catalog.h +182 -0
  73. package/vendor/libxml/include/libxml/chvalid.h +230 -0
  74. package/vendor/libxml/include/libxml/debugXML.h +217 -0
  75. package/vendor/libxml/include/libxml/dict.h +79 -0
  76. package/vendor/libxml/include/libxml/encoding.h +245 -0
  77. package/vendor/libxml/include/libxml/entities.h +151 -0
  78. package/vendor/libxml/include/libxml/globals.h +508 -0
  79. package/vendor/libxml/include/libxml/hash.h +236 -0
  80. package/vendor/libxml/include/libxml/list.h +137 -0
  81. package/vendor/libxml/include/libxml/nanoftp.h +163 -0
  82. package/vendor/libxml/include/libxml/nanohttp.h +81 -0
  83. package/vendor/libxml/include/libxml/parser.h +1243 -0
  84. package/vendor/libxml/include/libxml/parserInternals.h +644 -0
  85. package/vendor/libxml/include/libxml/pattern.h +100 -0
  86. package/vendor/libxml/include/libxml/relaxng.h +217 -0
  87. package/vendor/libxml/include/libxml/schemasInternals.h +958 -0
  88. package/vendor/libxml/include/libxml/schematron.h +142 -0
  89. package/vendor/libxml/include/libxml/threads.h +89 -0
  90. package/vendor/libxml/include/libxml/tree.h +1311 -0
  91. package/vendor/libxml/include/libxml/uri.h +94 -0
  92. package/vendor/libxml/include/libxml/valid.h +458 -0
  93. package/vendor/libxml/include/libxml/xinclude.h +129 -0
  94. package/vendor/libxml/include/libxml/xlink.h +189 -0
  95. package/vendor/libxml/include/libxml/xmlIO.h +368 -0
  96. package/vendor/libxml/include/libxml/xmlautomata.h +146 -0
  97. package/vendor/libxml/include/libxml/xmlerror.h +945 -0
  98. package/vendor/libxml/include/libxml/xmlexports.h +77 -0
  99. package/vendor/libxml/include/libxml/xmlmemory.h +224 -0
  100. package/vendor/libxml/include/libxml/xmlmodule.h +57 -0
  101. package/vendor/libxml/include/libxml/xmlreader.h +428 -0
  102. package/vendor/libxml/include/libxml/xmlregexp.h +222 -0
  103. package/vendor/libxml/include/libxml/xmlsave.h +88 -0
  104. package/vendor/libxml/include/libxml/xmlschemas.h +246 -0
  105. package/vendor/libxml/include/libxml/xmlschemastypes.h +151 -0
  106. package/vendor/libxml/include/libxml/xmlstring.h +140 -0
  107. package/vendor/libxml/include/libxml/xmlunicode.h +202 -0
  108. package/vendor/libxml/include/libxml/xmlversion.h +484 -0
  109. package/vendor/libxml/include/libxml/xmlwin32version.h +239 -0
  110. package/vendor/libxml/include/libxml/xmlwriter.h +488 -0
  111. package/vendor/libxml/include/libxml/xpath.h +564 -0
  112. package/vendor/libxml/include/libxml/xpathInternals.h +632 -0
  113. package/vendor/libxml/include/libxml/xpointer.h +114 -0
  114. package/vendor/libxml/include/win32config.h +122 -0
  115. package/vendor/libxml/include/wsockcompat.h +54 -0
  116. package/vendor/libxml/legacy.c +1343 -0
  117. package/vendor/libxml/libxml.h +134 -0
  118. package/vendor/libxml/list.c +779 -0
  119. package/vendor/libxml/nanoftp.c +2118 -0
  120. package/vendor/libxml/nanohttp.c +1899 -0
  121. package/vendor/libxml/parser.c +15553 -0
  122. package/vendor/libxml/parserInternals.c +2164 -0
  123. package/vendor/libxml/pattern.c +2621 -0
  124. package/vendor/libxml/relaxng.c +11101 -0
  125. package/vendor/libxml/rngparser.c +1595 -0
  126. package/vendor/libxml/runsuite.c +1157 -0
  127. package/vendor/libxml/save.h +36 -0
  128. package/vendor/libxml/schematron.c +1787 -0
  129. package/vendor/libxml/threads.c +1049 -0
  130. package/vendor/libxml/timsort.h +601 -0
  131. package/vendor/libxml/tree.c +10183 -0
  132. package/vendor/libxml/trio.c +6895 -0
  133. package/vendor/libxml/trio.h +230 -0
  134. package/vendor/libxml/triodef.h +228 -0
  135. package/vendor/libxml/trionan.c +914 -0
  136. package/vendor/libxml/trionan.h +84 -0
  137. package/vendor/libxml/triop.h +150 -0
  138. package/vendor/libxml/triostr.c +2112 -0
  139. package/vendor/libxml/triostr.h +144 -0
  140. package/vendor/libxml/uri.c +2561 -0
  141. package/vendor/libxml/valid.c +7138 -0
  142. package/vendor/libxml/xinclude.c +2657 -0
  143. package/vendor/libxml/xlink.c +183 -0
  144. package/vendor/libxml/xmlIO.c +4135 -0
  145. package/vendor/libxml/xmlcatalog.c +624 -0
  146. package/vendor/libxml/xmllint.c +3796 -0
  147. package/vendor/libxml/xmlmemory.c +1163 -0
  148. package/vendor/libxml/xmlmodule.c +468 -0
  149. package/vendor/libxml/xmlreader.c +6033 -0
  150. package/vendor/libxml/xmlregexp.c +8271 -0
  151. package/vendor/libxml/xmlsave.c +2735 -0
  152. package/vendor/libxml/xmlschemas.c +29173 -0
  153. package/vendor/libxml/xmlschemastypes.c +6276 -0
  154. package/vendor/libxml/xmlstring.c +1050 -0
  155. package/vendor/libxml/xmlunicode.c +3179 -0
  156. package/vendor/libxml/xmlwriter.c +4738 -0
  157. package/vendor/libxml/xpath.c +14734 -0
  158. package/vendor/libxml/xpointer.c +2969 -0
  159. package/vendor/libxml/xzlib.c +815 -0
  160. package/vendor/libxml/xzlib.h +19 -0
@@ -0,0 +1,142 @@
1
+ /*
2
+ * Summary: XML Schemastron implementation
3
+ * Description: interface to the XML Schematron validity checking.
4
+ *
5
+ * Copy: See Copyright for the status of this software.
6
+ *
7
+ * Author: Daniel Veillard
8
+ */
9
+
10
+
11
+ #ifndef __XML_SCHEMATRON_H__
12
+ #define __XML_SCHEMATRON_H__
13
+
14
+ #include <libxml/xmlversion.h>
15
+
16
+ #ifdef LIBXML_SCHEMATRON_ENABLED
17
+
18
+ #include <libxml/tree.h>
19
+
20
+ #ifdef __cplusplus
21
+ extern "C" {
22
+ #endif
23
+
24
+ typedef enum {
25
+ XML_SCHEMATRON_OUT_QUIET = 1 << 0, /* quiet no report */
26
+ XML_SCHEMATRON_OUT_TEXT = 1 << 1, /* build a textual report */
27
+ XML_SCHEMATRON_OUT_XML = 1 << 2, /* output SVRL */
28
+ XML_SCHEMATRON_OUT_ERROR = 1 << 3, /* output via xmlStructuredErrorFunc */
29
+ XML_SCHEMATRON_OUT_FILE = 1 << 8, /* output to a file descriptor */
30
+ XML_SCHEMATRON_OUT_BUFFER = 1 << 9, /* output to a buffer */
31
+ XML_SCHEMATRON_OUT_IO = 1 << 10 /* output to I/O mechanism */
32
+ } xmlSchematronValidOptions;
33
+
34
+ /**
35
+ * The schemas related types are kept internal
36
+ */
37
+ typedef struct _xmlSchematron xmlSchematron;
38
+ typedef xmlSchematron *xmlSchematronPtr;
39
+
40
+ /**
41
+ * xmlSchematronValidityErrorFunc:
42
+ * @ctx: the validation context
43
+ * @msg: the message
44
+ * @...: extra arguments
45
+ *
46
+ * Signature of an error callback from a Schematron validation
47
+ */
48
+ typedef void (*xmlSchematronValidityErrorFunc) (void *ctx, const char *msg, ...);
49
+
50
+ /**
51
+ * xmlSchematronValidityWarningFunc:
52
+ * @ctx: the validation context
53
+ * @msg: the message
54
+ * @...: extra arguments
55
+ *
56
+ * Signature of a warning callback from a Schematron validation
57
+ */
58
+ typedef void (*xmlSchematronValidityWarningFunc) (void *ctx, const char *msg, ...);
59
+
60
+ /**
61
+ * A schemas validation context
62
+ */
63
+ typedef struct _xmlSchematronParserCtxt xmlSchematronParserCtxt;
64
+ typedef xmlSchematronParserCtxt *xmlSchematronParserCtxtPtr;
65
+
66
+ typedef struct _xmlSchematronValidCtxt xmlSchematronValidCtxt;
67
+ typedef xmlSchematronValidCtxt *xmlSchematronValidCtxtPtr;
68
+
69
+ /*
70
+ * Interfaces for parsing.
71
+ */
72
+ XMLPUBFUN xmlSchematronParserCtxtPtr XMLCALL
73
+ xmlSchematronNewParserCtxt (const char *URL);
74
+ XMLPUBFUN xmlSchematronParserCtxtPtr XMLCALL
75
+ xmlSchematronNewMemParserCtxt(const char *buffer,
76
+ int size);
77
+ XMLPUBFUN xmlSchematronParserCtxtPtr XMLCALL
78
+ xmlSchematronNewDocParserCtxt(xmlDocPtr doc);
79
+ XMLPUBFUN void XMLCALL
80
+ xmlSchematronFreeParserCtxt (xmlSchematronParserCtxtPtr ctxt);
81
+ /*****
82
+ XMLPUBFUN void XMLCALL
83
+ xmlSchematronSetParserErrors(xmlSchematronParserCtxtPtr ctxt,
84
+ xmlSchematronValidityErrorFunc err,
85
+ xmlSchematronValidityWarningFunc warn,
86
+ void *ctx);
87
+ XMLPUBFUN int XMLCALL
88
+ xmlSchematronGetParserErrors(xmlSchematronParserCtxtPtr ctxt,
89
+ xmlSchematronValidityErrorFunc * err,
90
+ xmlSchematronValidityWarningFunc * warn,
91
+ void **ctx);
92
+ XMLPUBFUN int XMLCALL
93
+ xmlSchematronIsValid (xmlSchematronValidCtxtPtr ctxt);
94
+ *****/
95
+ XMLPUBFUN xmlSchematronPtr XMLCALL
96
+ xmlSchematronParse (xmlSchematronParserCtxtPtr ctxt);
97
+ XMLPUBFUN void XMLCALL
98
+ xmlSchematronFree (xmlSchematronPtr schema);
99
+ /*
100
+ * Interfaces for validating
101
+ */
102
+ XMLPUBFUN void XMLCALL
103
+ xmlSchematronSetValidStructuredErrors(
104
+ xmlSchematronValidCtxtPtr ctxt,
105
+ xmlStructuredErrorFunc serror,
106
+ void *ctx);
107
+ /******
108
+ XMLPUBFUN void XMLCALL
109
+ xmlSchematronSetValidErrors (xmlSchematronValidCtxtPtr ctxt,
110
+ xmlSchematronValidityErrorFunc err,
111
+ xmlSchematronValidityWarningFunc warn,
112
+ void *ctx);
113
+ XMLPUBFUN int XMLCALL
114
+ xmlSchematronGetValidErrors (xmlSchematronValidCtxtPtr ctxt,
115
+ xmlSchematronValidityErrorFunc *err,
116
+ xmlSchematronValidityWarningFunc *warn,
117
+ void **ctx);
118
+ XMLPUBFUN int XMLCALL
119
+ xmlSchematronSetValidOptions(xmlSchematronValidCtxtPtr ctxt,
120
+ int options);
121
+ XMLPUBFUN int XMLCALL
122
+ xmlSchematronValidCtxtGetOptions(xmlSchematronValidCtxtPtr ctxt);
123
+ XMLPUBFUN int XMLCALL
124
+ xmlSchematronValidateOneElement (xmlSchematronValidCtxtPtr ctxt,
125
+ xmlNodePtr elem);
126
+ *******/
127
+
128
+ XMLPUBFUN xmlSchematronValidCtxtPtr XMLCALL
129
+ xmlSchematronNewValidCtxt (xmlSchematronPtr schema,
130
+ int options);
131
+ XMLPUBFUN void XMLCALL
132
+ xmlSchematronFreeValidCtxt (xmlSchematronValidCtxtPtr ctxt);
133
+ XMLPUBFUN int XMLCALL
134
+ xmlSchematronValidateDoc (xmlSchematronValidCtxtPtr ctxt,
135
+ xmlDocPtr instance);
136
+
137
+ #ifdef __cplusplus
138
+ }
139
+ #endif
140
+
141
+ #endif /* LIBXML_SCHEMATRON_ENABLED */
142
+ #endif /* __XML_SCHEMATRON_H__ */
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Summary: interfaces for thread handling
3
+ * Description: set of generic threading related routines
4
+ * should work with pthreads, Windows native or TLS threads
5
+ *
6
+ * Copy: See Copyright for the status of this software.
7
+ *
8
+ * Author: Daniel Veillard
9
+ */
10
+
11
+ #ifndef __XML_THREADS_H__
12
+ #define __XML_THREADS_H__
13
+
14
+ #include <libxml/xmlversion.h>
15
+
16
+ #ifdef __cplusplus
17
+ extern "C" {
18
+ #endif
19
+
20
+ /*
21
+ * xmlMutex are a simple mutual exception locks.
22
+ */
23
+ typedef struct _xmlMutex xmlMutex;
24
+ typedef xmlMutex *xmlMutexPtr;
25
+
26
+ /*
27
+ * xmlRMutex are reentrant mutual exception locks.
28
+ */
29
+ typedef struct _xmlRMutex xmlRMutex;
30
+ typedef xmlRMutex *xmlRMutexPtr;
31
+
32
+ #ifdef __cplusplus
33
+ }
34
+ #endif
35
+ #include <libxml/globals.h>
36
+ #ifdef __cplusplus
37
+ extern "C" {
38
+ #endif
39
+ XMLPUBFUN xmlMutexPtr XMLCALL
40
+ xmlNewMutex (void);
41
+ XMLPUBFUN void XMLCALL
42
+ xmlMutexLock (xmlMutexPtr tok);
43
+ XMLPUBFUN void XMLCALL
44
+ xmlMutexUnlock (xmlMutexPtr tok);
45
+ XMLPUBFUN void XMLCALL
46
+ xmlFreeMutex (xmlMutexPtr tok);
47
+
48
+ XMLPUBFUN xmlRMutexPtr XMLCALL
49
+ xmlNewRMutex (void);
50
+ XMLPUBFUN void XMLCALL
51
+ xmlRMutexLock (xmlRMutexPtr tok);
52
+ XMLPUBFUN void XMLCALL
53
+ xmlRMutexUnlock (xmlRMutexPtr tok);
54
+ XMLPUBFUN void XMLCALL
55
+ xmlFreeRMutex (xmlRMutexPtr tok);
56
+
57
+ /*
58
+ * Library wide APIs.
59
+ */
60
+ XMLPUBFUN void XMLCALL
61
+ xmlInitThreads (void);
62
+ XMLPUBFUN void XMLCALL
63
+ xmlLockLibrary (void);
64
+ XMLPUBFUN void XMLCALL
65
+ xmlUnlockLibrary(void);
66
+ XMLPUBFUN int XMLCALL
67
+ xmlGetThreadId (void);
68
+ XMLPUBFUN int XMLCALL
69
+ xmlIsMainThread (void);
70
+ XMLPUBFUN void XMLCALL
71
+ xmlCleanupThreads(void);
72
+ XMLPUBFUN xmlGlobalStatePtr XMLCALL
73
+ xmlGetGlobalState(void);
74
+
75
+ #ifdef HAVE_PTHREAD_H
76
+ #elif defined(HAVE_WIN32_THREADS) && !defined(HAVE_COMPILER_TLS) && (!defined(LIBXML_STATIC) || defined(LIBXML_STATIC_FOR_DLL))
77
+ #if defined(LIBXML_STATIC_FOR_DLL)
78
+ int XMLCALL
79
+ xmlDllMain(void *hinstDLL, unsigned long fdwReason,
80
+ void *lpvReserved);
81
+ #endif
82
+ #endif
83
+
84
+ #ifdef __cplusplus
85
+ }
86
+ #endif
87
+
88
+
89
+ #endif /* __XML_THREADS_H__ */