pocjenkixx 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 pocjenkixx might be problematic. Click here for more details.
- package/LICENSE +19 -0
- package/Makefile +18 -0
- package/README.md +52 -0
- package/binding.gyp +81 -0
- package/index.d.ts +273 -0
- package/index.js +45 -0
- package/lib/bindings.js +1 -0
- package/lib/document.js +122 -0
- package/lib/element.js +82 -0
- package/lib/sax_parser.js +38 -0
- package/package.json +70 -0
- package/src/html_document.cc +7 -0
- package/src/html_document.h +18 -0
- package/src/libxmljs.cc +252 -0
- package/src/libxmljs.h +53 -0
- package/src/xml_attribute.cc +173 -0
- package/src/xml_attribute.h +40 -0
- package/src/xml_comment.cc +117 -0
- package/src/xml_comment.h +30 -0
- package/src/xml_document.cc +810 -0
- package/src/xml_document.h +67 -0
- package/src/xml_element.cc +565 -0
- package/src/xml_element.h +61 -0
- package/src/xml_namespace.cc +158 -0
- package/src/xml_namespace.h +39 -0
- package/src/xml_node.cc +761 -0
- package/src/xml_node.h +73 -0
- package/src/xml_pi.cc +161 -0
- package/src/xml_pi.h +34 -0
- package/src/xml_sax_parser.cc +424 -0
- package/src/xml_sax_parser.h +73 -0
- package/src/xml_syntax_error.cc +66 -0
- package/src/xml_syntax_error.h +25 -0
- package/src/xml_text.cc +320 -0
- package/src/xml_text.h +48 -0
- package/src/xml_textwriter.cc +315 -0
- package/src/xml_textwriter.h +62 -0
- package/src/xml_xpath_context.cc +70 -0
- package/src/xml_xpath_context.h +23 -0
- package/vendor/libxml/Copyright +23 -0
- package/vendor/libxml/DOCBparser.c +305 -0
- package/vendor/libxml/HTMLparser.c +7287 -0
- package/vendor/libxml/HTMLtree.c +1200 -0
- package/vendor/libxml/Makefile +2983 -0
- package/vendor/libxml/SAX.c +180 -0
- package/vendor/libxml/SAX2.c +3036 -0
- package/vendor/libxml/buf.c +1351 -0
- package/vendor/libxml/buf.h +72 -0
- package/vendor/libxml/c14n.c +2234 -0
- package/vendor/libxml/catalog.c +3828 -0
- package/vendor/libxml/chvalid.c +336 -0
- package/vendor/libxml/config.h +294 -0
- package/vendor/libxml/config.h.gch +0 -0
- package/vendor/libxml/debugXML.c +3423 -0
- package/vendor/libxml/dict.c +1298 -0
- package/vendor/libxml/elfgcchack.h +17818 -0
- package/vendor/libxml/enc.h +32 -0
- package/vendor/libxml/encoding.c +3975 -0
- package/vendor/libxml/entities.c +1163 -0
- package/vendor/libxml/error.c +998 -0
- package/vendor/libxml/globals.c +1126 -0
- package/vendor/libxml/hash.c +1146 -0
- package/vendor/libxml/include/libxml/DOCBparser.h +96 -0
- package/vendor/libxml/include/libxml/HTMLparser.h +306 -0
- package/vendor/libxml/include/libxml/HTMLtree.h +147 -0
- package/vendor/libxml/include/libxml/Makefile +725 -0
- package/vendor/libxml/include/libxml/Makefile.am +54 -0
- package/vendor/libxml/include/libxml/Makefile.in +725 -0
- package/vendor/libxml/include/libxml/SAX.h +173 -0
- package/vendor/libxml/include/libxml/SAX2.h +178 -0
- package/vendor/libxml/include/libxml/c14n.h +128 -0
- package/vendor/libxml/include/libxml/catalog.h +182 -0
- package/vendor/libxml/include/libxml/chvalid.h +230 -0
- package/vendor/libxml/include/libxml/debugXML.h +217 -0
- package/vendor/libxml/include/libxml/dict.h +79 -0
- package/vendor/libxml/include/libxml/encoding.h +245 -0
- package/vendor/libxml/include/libxml/entities.h +151 -0
- package/vendor/libxml/include/libxml/globals.h +508 -0
- package/vendor/libxml/include/libxml/hash.h +236 -0
- package/vendor/libxml/include/libxml/list.h +137 -0
- package/vendor/libxml/include/libxml/nanoftp.h +163 -0
- package/vendor/libxml/include/libxml/nanohttp.h +81 -0
- package/vendor/libxml/include/libxml/parser.h +1243 -0
- package/vendor/libxml/include/libxml/parserInternals.h +644 -0
- package/vendor/libxml/include/libxml/pattern.h +100 -0
- package/vendor/libxml/include/libxml/relaxng.h +217 -0
- package/vendor/libxml/include/libxml/schemasInternals.h +958 -0
- package/vendor/libxml/include/libxml/schematron.h +142 -0
- package/vendor/libxml/include/libxml/threads.h +89 -0
- package/vendor/libxml/include/libxml/tree.h +1311 -0
- package/vendor/libxml/include/libxml/uri.h +94 -0
- package/vendor/libxml/include/libxml/valid.h +458 -0
- package/vendor/libxml/include/libxml/xinclude.h +129 -0
- package/vendor/libxml/include/libxml/xlink.h +189 -0
- package/vendor/libxml/include/libxml/xmlIO.h +368 -0
- package/vendor/libxml/include/libxml/xmlautomata.h +146 -0
- package/vendor/libxml/include/libxml/xmlerror.h +945 -0
- package/vendor/libxml/include/libxml/xmlexports.h +77 -0
- package/vendor/libxml/include/libxml/xmlmemory.h +224 -0
- package/vendor/libxml/include/libxml/xmlmodule.h +57 -0
- package/vendor/libxml/include/libxml/xmlreader.h +428 -0
- package/vendor/libxml/include/libxml/xmlregexp.h +222 -0
- package/vendor/libxml/include/libxml/xmlsave.h +88 -0
- package/vendor/libxml/include/libxml/xmlschemas.h +246 -0
- package/vendor/libxml/include/libxml/xmlschemastypes.h +151 -0
- package/vendor/libxml/include/libxml/xmlstring.h +140 -0
- package/vendor/libxml/include/libxml/xmlunicode.h +202 -0
- package/vendor/libxml/include/libxml/xmlversion.h +484 -0
- package/vendor/libxml/include/libxml/xmlwin32version.h +239 -0
- package/vendor/libxml/include/libxml/xmlwriter.h +488 -0
- package/vendor/libxml/include/libxml/xpath.h +564 -0
- package/vendor/libxml/include/libxml/xpathInternals.h +632 -0
- package/vendor/libxml/include/libxml/xpointer.h +114 -0
- package/vendor/libxml/include/win32config.h +122 -0
- package/vendor/libxml/include/wsockcompat.h +54 -0
- package/vendor/libxml/legacy.c +1343 -0
- package/vendor/libxml/libxml.h +134 -0
- package/vendor/libxml/list.c +779 -0
- package/vendor/libxml/nanoftp.c +2118 -0
- package/vendor/libxml/nanohttp.c +1899 -0
- package/vendor/libxml/parser.c +15553 -0
- package/vendor/libxml/parserInternals.c +2164 -0
- package/vendor/libxml/pattern.c +2621 -0
- package/vendor/libxml/relaxng.c +11101 -0
- package/vendor/libxml/rngparser.c +1595 -0
- package/vendor/libxml/runsuite.c +1157 -0
- package/vendor/libxml/save.h +36 -0
- package/vendor/libxml/schematron.c +1787 -0
- package/vendor/libxml/threads.c +1049 -0
- package/vendor/libxml/timsort.h +601 -0
- package/vendor/libxml/tree.c +10183 -0
- package/vendor/libxml/trio.c +6895 -0
- package/vendor/libxml/trio.h +230 -0
- package/vendor/libxml/triodef.h +228 -0
- package/vendor/libxml/trionan.c +914 -0
- package/vendor/libxml/trionan.h +84 -0
- package/vendor/libxml/triop.h +150 -0
- package/vendor/libxml/triostr.c +2112 -0
- package/vendor/libxml/triostr.h +144 -0
- package/vendor/libxml/uri.c +2561 -0
- package/vendor/libxml/valid.c +7138 -0
- package/vendor/libxml/xinclude.c +2657 -0
- package/vendor/libxml/xlink.c +183 -0
- package/vendor/libxml/xmlIO.c +4135 -0
- package/vendor/libxml/xmlcatalog.c +624 -0
- package/vendor/libxml/xmllint.c +3796 -0
- package/vendor/libxml/xmlmemory.c +1163 -0
- package/vendor/libxml/xmlmodule.c +468 -0
- package/vendor/libxml/xmlreader.c +6033 -0
- package/vendor/libxml/xmlregexp.c +8271 -0
- package/vendor/libxml/xmlsave.c +2735 -0
- package/vendor/libxml/xmlschemas.c +29173 -0
- package/vendor/libxml/xmlschemastypes.c +6276 -0
- package/vendor/libxml/xmlstring.c +1050 -0
- package/vendor/libxml/xmlunicode.c +3179 -0
- package/vendor/libxml/xmlwriter.c +4738 -0
- package/vendor/libxml/xpath.c +14734 -0
- package/vendor/libxml/xpointer.c +2969 -0
- package/vendor/libxml/xzlib.c +815 -0
- package/vendor/libxml/xzlib.h +19 -0
@@ -0,0 +1,180 @@
|
|
1
|
+
/*
|
2
|
+
* SAX.c : Old SAX v1 handlers to build a tree.
|
3
|
+
* Deprecated except for compatibility
|
4
|
+
*
|
5
|
+
* See Copyright for the status of this software.
|
6
|
+
*
|
7
|
+
* Daniel Veillard <daniel@veillard.com>
|
8
|
+
*/
|
9
|
+
|
10
|
+
|
11
|
+
#define IN_LIBXML
|
12
|
+
#include "libxml.h"
|
13
|
+
#include <stdlib.h>
|
14
|
+
#include <string.h>
|
15
|
+
#include <libxml/xmlmemory.h>
|
16
|
+
#include <libxml/tree.h>
|
17
|
+
#include <libxml/parser.h>
|
18
|
+
#include <libxml/parserInternals.h>
|
19
|
+
#include <libxml/valid.h>
|
20
|
+
#include <libxml/entities.h>
|
21
|
+
#include <libxml/xmlerror.h>
|
22
|
+
#include <libxml/debugXML.h>
|
23
|
+
#include <libxml/xmlIO.h>
|
24
|
+
#include <libxml/SAX.h>
|
25
|
+
#include <libxml/uri.h>
|
26
|
+
#include <libxml/valid.h>
|
27
|
+
#include <libxml/HTMLtree.h>
|
28
|
+
#include <libxml/globals.h>
|
29
|
+
#include <libxml/SAX2.h>
|
30
|
+
|
31
|
+
#ifdef LIBXML_LEGACY_ENABLED
|
32
|
+
#ifdef LIBXML_SAX1_ENABLED
|
33
|
+
/**
|
34
|
+
* initxmlDefaultSAXHandler:
|
35
|
+
* @hdlr: the SAX handler
|
36
|
+
* @warning: flag if non-zero sets the handler warning procedure
|
37
|
+
*
|
38
|
+
* Initialize the default XML SAX version 1 handler
|
39
|
+
* DEPRECATED: use xmlSAX2InitDefaultSAXHandler() for the new SAX2 blocks
|
40
|
+
*/
|
41
|
+
void
|
42
|
+
initxmlDefaultSAXHandler(xmlSAXHandlerV1 *hdlr, int warning)
|
43
|
+
{
|
44
|
+
|
45
|
+
if(hdlr->initialized == 1)
|
46
|
+
return;
|
47
|
+
|
48
|
+
hdlr->internalSubset = xmlSAX2InternalSubset;
|
49
|
+
hdlr->externalSubset = xmlSAX2ExternalSubset;
|
50
|
+
hdlr->isStandalone = xmlSAX2IsStandalone;
|
51
|
+
hdlr->hasInternalSubset = xmlSAX2HasInternalSubset;
|
52
|
+
hdlr->hasExternalSubset = xmlSAX2HasExternalSubset;
|
53
|
+
hdlr->resolveEntity = xmlSAX2ResolveEntity;
|
54
|
+
hdlr->getEntity = xmlSAX2GetEntity;
|
55
|
+
hdlr->getParameterEntity = xmlSAX2GetParameterEntity;
|
56
|
+
hdlr->entityDecl = xmlSAX2EntityDecl;
|
57
|
+
hdlr->attributeDecl = xmlSAX2AttributeDecl;
|
58
|
+
hdlr->elementDecl = xmlSAX2ElementDecl;
|
59
|
+
hdlr->notationDecl = xmlSAX2NotationDecl;
|
60
|
+
hdlr->unparsedEntityDecl = xmlSAX2UnparsedEntityDecl;
|
61
|
+
hdlr->setDocumentLocator = xmlSAX2SetDocumentLocator;
|
62
|
+
hdlr->startDocument = xmlSAX2StartDocument;
|
63
|
+
hdlr->endDocument = xmlSAX2EndDocument;
|
64
|
+
hdlr->startElement = xmlSAX2StartElement;
|
65
|
+
hdlr->endElement = xmlSAX2EndElement;
|
66
|
+
hdlr->reference = xmlSAX2Reference;
|
67
|
+
hdlr->characters = xmlSAX2Characters;
|
68
|
+
hdlr->cdataBlock = xmlSAX2CDataBlock;
|
69
|
+
hdlr->ignorableWhitespace = xmlSAX2Characters;
|
70
|
+
hdlr->processingInstruction = xmlSAX2ProcessingInstruction;
|
71
|
+
if (warning == 0)
|
72
|
+
hdlr->warning = NULL;
|
73
|
+
else
|
74
|
+
hdlr->warning = xmlParserWarning;
|
75
|
+
hdlr->error = xmlParserError;
|
76
|
+
hdlr->fatalError = xmlParserError;
|
77
|
+
|
78
|
+
hdlr->initialized = 1;
|
79
|
+
}
|
80
|
+
|
81
|
+
#ifdef LIBXML_HTML_ENABLED
|
82
|
+
|
83
|
+
/**
|
84
|
+
* inithtmlDefaultSAXHandler:
|
85
|
+
* @hdlr: the SAX handler
|
86
|
+
*
|
87
|
+
* Initialize the default HTML SAX version 1 handler
|
88
|
+
* DEPRECATED: use xmlSAX2InitHtmlDefaultSAXHandler() for the new SAX2 blocks
|
89
|
+
*/
|
90
|
+
void
|
91
|
+
inithtmlDefaultSAXHandler(xmlSAXHandlerV1 *hdlr)
|
92
|
+
{
|
93
|
+
if(hdlr->initialized == 1)
|
94
|
+
return;
|
95
|
+
|
96
|
+
hdlr->internalSubset = xmlSAX2InternalSubset;
|
97
|
+
hdlr->externalSubset = NULL;
|
98
|
+
hdlr->isStandalone = NULL;
|
99
|
+
hdlr->hasInternalSubset = NULL;
|
100
|
+
hdlr->hasExternalSubset = NULL;
|
101
|
+
hdlr->resolveEntity = NULL;
|
102
|
+
hdlr->getEntity = xmlSAX2GetEntity;
|
103
|
+
hdlr->getParameterEntity = NULL;
|
104
|
+
hdlr->entityDecl = NULL;
|
105
|
+
hdlr->attributeDecl = NULL;
|
106
|
+
hdlr->elementDecl = NULL;
|
107
|
+
hdlr->notationDecl = NULL;
|
108
|
+
hdlr->unparsedEntityDecl = NULL;
|
109
|
+
hdlr->setDocumentLocator = xmlSAX2SetDocumentLocator;
|
110
|
+
hdlr->startDocument = xmlSAX2StartDocument;
|
111
|
+
hdlr->endDocument = xmlSAX2EndDocument;
|
112
|
+
hdlr->startElement = xmlSAX2StartElement;
|
113
|
+
hdlr->endElement = xmlSAX2EndElement;
|
114
|
+
hdlr->reference = NULL;
|
115
|
+
hdlr->characters = xmlSAX2Characters;
|
116
|
+
hdlr->cdataBlock = xmlSAX2CDataBlock;
|
117
|
+
hdlr->ignorableWhitespace = xmlSAX2IgnorableWhitespace;
|
118
|
+
hdlr->processingInstruction = xmlSAX2ProcessingInstruction;
|
119
|
+
hdlr->comment = xmlSAX2Comment;
|
120
|
+
hdlr->warning = xmlParserWarning;
|
121
|
+
hdlr->error = xmlParserError;
|
122
|
+
hdlr->fatalError = xmlParserError;
|
123
|
+
|
124
|
+
hdlr->initialized = 1;
|
125
|
+
}
|
126
|
+
|
127
|
+
#endif /* LIBXML_HTML_ENABLED */
|
128
|
+
|
129
|
+
#ifdef LIBXML_DOCB_ENABLED
|
130
|
+
/**
|
131
|
+
* initdocbDefaultSAXHandler:
|
132
|
+
* @hdlr: the SAX handler
|
133
|
+
*
|
134
|
+
* Initialize the default DocBook SAX version 1 handler
|
135
|
+
* DEPRECATED: use xmlSAX2InitDocbDefaultSAXHandler() for the new SAX2 blocks
|
136
|
+
*/
|
137
|
+
void
|
138
|
+
initdocbDefaultSAXHandler(xmlSAXHandlerV1 *hdlr)
|
139
|
+
{
|
140
|
+
if(hdlr->initialized == 1)
|
141
|
+
return;
|
142
|
+
|
143
|
+
hdlr->internalSubset = xmlSAX2InternalSubset;
|
144
|
+
hdlr->externalSubset = NULL;
|
145
|
+
hdlr->isStandalone = xmlSAX2IsStandalone;
|
146
|
+
hdlr->hasInternalSubset = xmlSAX2HasInternalSubset;
|
147
|
+
hdlr->hasExternalSubset = xmlSAX2HasExternalSubset;
|
148
|
+
hdlr->resolveEntity = xmlSAX2ResolveEntity;
|
149
|
+
hdlr->getEntity = xmlSAX2GetEntity;
|
150
|
+
hdlr->getParameterEntity = NULL;
|
151
|
+
hdlr->entityDecl = xmlSAX2EntityDecl;
|
152
|
+
hdlr->attributeDecl = NULL;
|
153
|
+
hdlr->elementDecl = NULL;
|
154
|
+
hdlr->notationDecl = NULL;
|
155
|
+
hdlr->unparsedEntityDecl = NULL;
|
156
|
+
hdlr->setDocumentLocator = xmlSAX2SetDocumentLocator;
|
157
|
+
hdlr->startDocument = xmlSAX2StartDocument;
|
158
|
+
hdlr->endDocument = xmlSAX2EndDocument;
|
159
|
+
hdlr->startElement = xmlSAX2StartElement;
|
160
|
+
hdlr->endElement = xmlSAX2EndElement;
|
161
|
+
hdlr->reference = xmlSAX2Reference;
|
162
|
+
hdlr->characters = xmlSAX2Characters;
|
163
|
+
hdlr->cdataBlock = NULL;
|
164
|
+
hdlr->ignorableWhitespace = xmlSAX2IgnorableWhitespace;
|
165
|
+
hdlr->processingInstruction = NULL;
|
166
|
+
hdlr->comment = xmlSAX2Comment;
|
167
|
+
hdlr->warning = xmlParserWarning;
|
168
|
+
hdlr->error = xmlParserError;
|
169
|
+
hdlr->fatalError = xmlParserError;
|
170
|
+
|
171
|
+
hdlr->initialized = 1;
|
172
|
+
}
|
173
|
+
|
174
|
+
#endif /* LIBXML_DOCB_ENABLED */
|
175
|
+
|
176
|
+
#endif /* LIBXML_SAX1_ENABLED */
|
177
|
+
|
178
|
+
#define bottom_SAX
|
179
|
+
#include "elfgcchack.h"
|
180
|
+
#endif /* LIBXML_LEGACY_ENABLED */
|