@helm2/poc_jenki_rce 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @helm2/poc_jenki_rce 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 +118 -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,173 @@
|
|
1
|
+
/*
|
2
|
+
* Summary: Old SAX version 1 handler, deprecated
|
3
|
+
* Description: DEPRECATED set of SAX version 1 interfaces used to
|
4
|
+
* build the DOM tree.
|
5
|
+
*
|
6
|
+
* Copy: See Copyright for the status of this software.
|
7
|
+
*
|
8
|
+
* Author: Daniel Veillard
|
9
|
+
*/
|
10
|
+
|
11
|
+
|
12
|
+
#ifndef __XML_SAX_H__
|
13
|
+
#define __XML_SAX_H__
|
14
|
+
|
15
|
+
#include <stdio.h>
|
16
|
+
#include <stdlib.h>
|
17
|
+
#include <libxml/xmlversion.h>
|
18
|
+
#include <libxml/parser.h>
|
19
|
+
#include <libxml/xlink.h>
|
20
|
+
|
21
|
+
#ifdef LIBXML_LEGACY_ENABLED
|
22
|
+
|
23
|
+
#ifdef __cplusplus
|
24
|
+
extern "C" {
|
25
|
+
#endif
|
26
|
+
XMLPUBFUN const xmlChar * XMLCALL
|
27
|
+
getPublicId (void *ctx);
|
28
|
+
XMLPUBFUN const xmlChar * XMLCALL
|
29
|
+
getSystemId (void *ctx);
|
30
|
+
XMLPUBFUN void XMLCALL
|
31
|
+
setDocumentLocator (void *ctx,
|
32
|
+
xmlSAXLocatorPtr loc);
|
33
|
+
|
34
|
+
XMLPUBFUN int XMLCALL
|
35
|
+
getLineNumber (void *ctx);
|
36
|
+
XMLPUBFUN int XMLCALL
|
37
|
+
getColumnNumber (void *ctx);
|
38
|
+
|
39
|
+
XMLPUBFUN int XMLCALL
|
40
|
+
isStandalone (void *ctx);
|
41
|
+
XMLPUBFUN int XMLCALL
|
42
|
+
hasInternalSubset (void *ctx);
|
43
|
+
XMLPUBFUN int XMLCALL
|
44
|
+
hasExternalSubset (void *ctx);
|
45
|
+
|
46
|
+
XMLPUBFUN void XMLCALL
|
47
|
+
internalSubset (void *ctx,
|
48
|
+
const xmlChar *name,
|
49
|
+
const xmlChar *ExternalID,
|
50
|
+
const xmlChar *SystemID);
|
51
|
+
XMLPUBFUN void XMLCALL
|
52
|
+
externalSubset (void *ctx,
|
53
|
+
const xmlChar *name,
|
54
|
+
const xmlChar *ExternalID,
|
55
|
+
const xmlChar *SystemID);
|
56
|
+
XMLPUBFUN xmlEntityPtr XMLCALL
|
57
|
+
getEntity (void *ctx,
|
58
|
+
const xmlChar *name);
|
59
|
+
XMLPUBFUN xmlEntityPtr XMLCALL
|
60
|
+
getParameterEntity (void *ctx,
|
61
|
+
const xmlChar *name);
|
62
|
+
XMLPUBFUN xmlParserInputPtr XMLCALL
|
63
|
+
resolveEntity (void *ctx,
|
64
|
+
const xmlChar *publicId,
|
65
|
+
const xmlChar *systemId);
|
66
|
+
|
67
|
+
XMLPUBFUN void XMLCALL
|
68
|
+
entityDecl (void *ctx,
|
69
|
+
const xmlChar *name,
|
70
|
+
int type,
|
71
|
+
const xmlChar *publicId,
|
72
|
+
const xmlChar *systemId,
|
73
|
+
xmlChar *content);
|
74
|
+
XMLPUBFUN void XMLCALL
|
75
|
+
attributeDecl (void *ctx,
|
76
|
+
const xmlChar *elem,
|
77
|
+
const xmlChar *fullname,
|
78
|
+
int type,
|
79
|
+
int def,
|
80
|
+
const xmlChar *defaultValue,
|
81
|
+
xmlEnumerationPtr tree);
|
82
|
+
XMLPUBFUN void XMLCALL
|
83
|
+
elementDecl (void *ctx,
|
84
|
+
const xmlChar *name,
|
85
|
+
int type,
|
86
|
+
xmlElementContentPtr content);
|
87
|
+
XMLPUBFUN void XMLCALL
|
88
|
+
notationDecl (void *ctx,
|
89
|
+
const xmlChar *name,
|
90
|
+
const xmlChar *publicId,
|
91
|
+
const xmlChar *systemId);
|
92
|
+
XMLPUBFUN void XMLCALL
|
93
|
+
unparsedEntityDecl (void *ctx,
|
94
|
+
const xmlChar *name,
|
95
|
+
const xmlChar *publicId,
|
96
|
+
const xmlChar *systemId,
|
97
|
+
const xmlChar *notationName);
|
98
|
+
|
99
|
+
XMLPUBFUN void XMLCALL
|
100
|
+
startDocument (void *ctx);
|
101
|
+
XMLPUBFUN void XMLCALL
|
102
|
+
endDocument (void *ctx);
|
103
|
+
XMLPUBFUN void XMLCALL
|
104
|
+
attribute (void *ctx,
|
105
|
+
const xmlChar *fullname,
|
106
|
+
const xmlChar *value);
|
107
|
+
XMLPUBFUN void XMLCALL
|
108
|
+
startElement (void *ctx,
|
109
|
+
const xmlChar *fullname,
|
110
|
+
const xmlChar **atts);
|
111
|
+
XMLPUBFUN void XMLCALL
|
112
|
+
endElement (void *ctx,
|
113
|
+
const xmlChar *name);
|
114
|
+
XMLPUBFUN void XMLCALL
|
115
|
+
reference (void *ctx,
|
116
|
+
const xmlChar *name);
|
117
|
+
XMLPUBFUN void XMLCALL
|
118
|
+
characters (void *ctx,
|
119
|
+
const xmlChar *ch,
|
120
|
+
int len);
|
121
|
+
XMLPUBFUN void XMLCALL
|
122
|
+
ignorableWhitespace (void *ctx,
|
123
|
+
const xmlChar *ch,
|
124
|
+
int len);
|
125
|
+
XMLPUBFUN void XMLCALL
|
126
|
+
processingInstruction (void *ctx,
|
127
|
+
const xmlChar *target,
|
128
|
+
const xmlChar *data);
|
129
|
+
XMLPUBFUN void XMLCALL
|
130
|
+
globalNamespace (void *ctx,
|
131
|
+
const xmlChar *href,
|
132
|
+
const xmlChar *prefix);
|
133
|
+
XMLPUBFUN void XMLCALL
|
134
|
+
setNamespace (void *ctx,
|
135
|
+
const xmlChar *name);
|
136
|
+
XMLPUBFUN xmlNsPtr XMLCALL
|
137
|
+
getNamespace (void *ctx);
|
138
|
+
XMLPUBFUN int XMLCALL
|
139
|
+
checkNamespace (void *ctx,
|
140
|
+
xmlChar *nameSpace);
|
141
|
+
XMLPUBFUN void XMLCALL
|
142
|
+
namespaceDecl (void *ctx,
|
143
|
+
const xmlChar *href,
|
144
|
+
const xmlChar *prefix);
|
145
|
+
XMLPUBFUN void XMLCALL
|
146
|
+
comment (void *ctx,
|
147
|
+
const xmlChar *value);
|
148
|
+
XMLPUBFUN void XMLCALL
|
149
|
+
cdataBlock (void *ctx,
|
150
|
+
const xmlChar *value,
|
151
|
+
int len);
|
152
|
+
|
153
|
+
#ifdef LIBXML_SAX1_ENABLED
|
154
|
+
XMLPUBFUN void XMLCALL
|
155
|
+
initxmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr,
|
156
|
+
int warning);
|
157
|
+
#ifdef LIBXML_HTML_ENABLED
|
158
|
+
XMLPUBFUN void XMLCALL
|
159
|
+
inithtmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr);
|
160
|
+
#endif
|
161
|
+
#ifdef LIBXML_DOCB_ENABLED
|
162
|
+
XMLPUBFUN void XMLCALL
|
163
|
+
initdocbDefaultSAXHandler (xmlSAXHandlerV1 *hdlr);
|
164
|
+
#endif
|
165
|
+
#endif /* LIBXML_SAX1_ENABLED */
|
166
|
+
|
167
|
+
#ifdef __cplusplus
|
168
|
+
}
|
169
|
+
#endif
|
170
|
+
|
171
|
+
#endif /* LIBXML_LEGACY_ENABLED */
|
172
|
+
|
173
|
+
#endif /* __XML_SAX_H__ */
|
@@ -0,0 +1,178 @@
|
|
1
|
+
/*
|
2
|
+
* Summary: SAX2 parser interface used to build the DOM tree
|
3
|
+
* Description: those are the default SAX2 interfaces used by
|
4
|
+
* the library when building DOM tree.
|
5
|
+
*
|
6
|
+
* Copy: See Copyright for the status of this software.
|
7
|
+
*
|
8
|
+
* Author: Daniel Veillard
|
9
|
+
*/
|
10
|
+
|
11
|
+
|
12
|
+
#ifndef __XML_SAX2_H__
|
13
|
+
#define __XML_SAX2_H__
|
14
|
+
|
15
|
+
#include <stdio.h>
|
16
|
+
#include <stdlib.h>
|
17
|
+
#include <libxml/xmlversion.h>
|
18
|
+
#include <libxml/parser.h>
|
19
|
+
#include <libxml/xlink.h>
|
20
|
+
|
21
|
+
#ifdef __cplusplus
|
22
|
+
extern "C" {
|
23
|
+
#endif
|
24
|
+
XMLPUBFUN const xmlChar * XMLCALL
|
25
|
+
xmlSAX2GetPublicId (void *ctx);
|
26
|
+
XMLPUBFUN const xmlChar * XMLCALL
|
27
|
+
xmlSAX2GetSystemId (void *ctx);
|
28
|
+
XMLPUBFUN void XMLCALL
|
29
|
+
xmlSAX2SetDocumentLocator (void *ctx,
|
30
|
+
xmlSAXLocatorPtr loc);
|
31
|
+
|
32
|
+
XMLPUBFUN int XMLCALL
|
33
|
+
xmlSAX2GetLineNumber (void *ctx);
|
34
|
+
XMLPUBFUN int XMLCALL
|
35
|
+
xmlSAX2GetColumnNumber (void *ctx);
|
36
|
+
|
37
|
+
XMLPUBFUN int XMLCALL
|
38
|
+
xmlSAX2IsStandalone (void *ctx);
|
39
|
+
XMLPUBFUN int XMLCALL
|
40
|
+
xmlSAX2HasInternalSubset (void *ctx);
|
41
|
+
XMLPUBFUN int XMLCALL
|
42
|
+
xmlSAX2HasExternalSubset (void *ctx);
|
43
|
+
|
44
|
+
XMLPUBFUN void XMLCALL
|
45
|
+
xmlSAX2InternalSubset (void *ctx,
|
46
|
+
const xmlChar *name,
|
47
|
+
const xmlChar *ExternalID,
|
48
|
+
const xmlChar *SystemID);
|
49
|
+
XMLPUBFUN void XMLCALL
|
50
|
+
xmlSAX2ExternalSubset (void *ctx,
|
51
|
+
const xmlChar *name,
|
52
|
+
const xmlChar *ExternalID,
|
53
|
+
const xmlChar *SystemID);
|
54
|
+
XMLPUBFUN xmlEntityPtr XMLCALL
|
55
|
+
xmlSAX2GetEntity (void *ctx,
|
56
|
+
const xmlChar *name);
|
57
|
+
XMLPUBFUN xmlEntityPtr XMLCALL
|
58
|
+
xmlSAX2GetParameterEntity (void *ctx,
|
59
|
+
const xmlChar *name);
|
60
|
+
XMLPUBFUN xmlParserInputPtr XMLCALL
|
61
|
+
xmlSAX2ResolveEntity (void *ctx,
|
62
|
+
const xmlChar *publicId,
|
63
|
+
const xmlChar *systemId);
|
64
|
+
|
65
|
+
XMLPUBFUN void XMLCALL
|
66
|
+
xmlSAX2EntityDecl (void *ctx,
|
67
|
+
const xmlChar *name,
|
68
|
+
int type,
|
69
|
+
const xmlChar *publicId,
|
70
|
+
const xmlChar *systemId,
|
71
|
+
xmlChar *content);
|
72
|
+
XMLPUBFUN void XMLCALL
|
73
|
+
xmlSAX2AttributeDecl (void *ctx,
|
74
|
+
const xmlChar *elem,
|
75
|
+
const xmlChar *fullname,
|
76
|
+
int type,
|
77
|
+
int def,
|
78
|
+
const xmlChar *defaultValue,
|
79
|
+
xmlEnumerationPtr tree);
|
80
|
+
XMLPUBFUN void XMLCALL
|
81
|
+
xmlSAX2ElementDecl (void *ctx,
|
82
|
+
const xmlChar *name,
|
83
|
+
int type,
|
84
|
+
xmlElementContentPtr content);
|
85
|
+
XMLPUBFUN void XMLCALL
|
86
|
+
xmlSAX2NotationDecl (void *ctx,
|
87
|
+
const xmlChar *name,
|
88
|
+
const xmlChar *publicId,
|
89
|
+
const xmlChar *systemId);
|
90
|
+
XMLPUBFUN void XMLCALL
|
91
|
+
xmlSAX2UnparsedEntityDecl (void *ctx,
|
92
|
+
const xmlChar *name,
|
93
|
+
const xmlChar *publicId,
|
94
|
+
const xmlChar *systemId,
|
95
|
+
const xmlChar *notationName);
|
96
|
+
|
97
|
+
XMLPUBFUN void XMLCALL
|
98
|
+
xmlSAX2StartDocument (void *ctx);
|
99
|
+
XMLPUBFUN void XMLCALL
|
100
|
+
xmlSAX2EndDocument (void *ctx);
|
101
|
+
#if defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED) || \
|
102
|
+
defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_DOCB_ENABLED) || \
|
103
|
+
defined(LIBXML_LEGACY_ENABLED)
|
104
|
+
XMLPUBFUN void XMLCALL
|
105
|
+
xmlSAX2StartElement (void *ctx,
|
106
|
+
const xmlChar *fullname,
|
107
|
+
const xmlChar **atts);
|
108
|
+
XMLPUBFUN void XMLCALL
|
109
|
+
xmlSAX2EndElement (void *ctx,
|
110
|
+
const xmlChar *name);
|
111
|
+
#endif /* LIBXML_SAX1_ENABLED or LIBXML_HTML_ENABLED or LIBXML_LEGACY_ENABLED */
|
112
|
+
XMLPUBFUN void XMLCALL
|
113
|
+
xmlSAX2StartElementNs (void *ctx,
|
114
|
+
const xmlChar *localname,
|
115
|
+
const xmlChar *prefix,
|
116
|
+
const xmlChar *URI,
|
117
|
+
int nb_namespaces,
|
118
|
+
const xmlChar **namespaces,
|
119
|
+
int nb_attributes,
|
120
|
+
int nb_defaulted,
|
121
|
+
const xmlChar **attributes);
|
122
|
+
XMLPUBFUN void XMLCALL
|
123
|
+
xmlSAX2EndElementNs (void *ctx,
|
124
|
+
const xmlChar *localname,
|
125
|
+
const xmlChar *prefix,
|
126
|
+
const xmlChar *URI);
|
127
|
+
XMLPUBFUN void XMLCALL
|
128
|
+
xmlSAX2Reference (void *ctx,
|
129
|
+
const xmlChar *name);
|
130
|
+
XMLPUBFUN void XMLCALL
|
131
|
+
xmlSAX2Characters (void *ctx,
|
132
|
+
const xmlChar *ch,
|
133
|
+
int len);
|
134
|
+
XMLPUBFUN void XMLCALL
|
135
|
+
xmlSAX2IgnorableWhitespace (void *ctx,
|
136
|
+
const xmlChar *ch,
|
137
|
+
int len);
|
138
|
+
XMLPUBFUN void XMLCALL
|
139
|
+
xmlSAX2ProcessingInstruction (void *ctx,
|
140
|
+
const xmlChar *target,
|
141
|
+
const xmlChar *data);
|
142
|
+
XMLPUBFUN void XMLCALL
|
143
|
+
xmlSAX2Comment (void *ctx,
|
144
|
+
const xmlChar *value);
|
145
|
+
XMLPUBFUN void XMLCALL
|
146
|
+
xmlSAX2CDataBlock (void *ctx,
|
147
|
+
const xmlChar *value,
|
148
|
+
int len);
|
149
|
+
|
150
|
+
#ifdef LIBXML_SAX1_ENABLED
|
151
|
+
XMLPUBFUN int XMLCALL
|
152
|
+
xmlSAXDefaultVersion (int version);
|
153
|
+
#endif /* LIBXML_SAX1_ENABLED */
|
154
|
+
|
155
|
+
XMLPUBFUN int XMLCALL
|
156
|
+
xmlSAXVersion (xmlSAXHandler *hdlr,
|
157
|
+
int version);
|
158
|
+
XMLPUBFUN void XMLCALL
|
159
|
+
xmlSAX2InitDefaultSAXHandler (xmlSAXHandler *hdlr,
|
160
|
+
int warning);
|
161
|
+
#ifdef LIBXML_HTML_ENABLED
|
162
|
+
XMLPUBFUN void XMLCALL
|
163
|
+
xmlSAX2InitHtmlDefaultSAXHandler(xmlSAXHandler *hdlr);
|
164
|
+
XMLPUBFUN void XMLCALL
|
165
|
+
htmlDefaultSAXHandlerInit (void);
|
166
|
+
#endif
|
167
|
+
#ifdef LIBXML_DOCB_ENABLED
|
168
|
+
XMLPUBFUN void XMLCALL
|
169
|
+
xmlSAX2InitDocbDefaultSAXHandler(xmlSAXHandler *hdlr);
|
170
|
+
XMLPUBFUN void XMLCALL
|
171
|
+
docbDefaultSAXHandlerInit (void);
|
172
|
+
#endif
|
173
|
+
XMLPUBFUN void XMLCALL
|
174
|
+
xmlDefaultSAXHandlerInit (void);
|
175
|
+
#ifdef __cplusplus
|
176
|
+
}
|
177
|
+
#endif
|
178
|
+
#endif /* __XML_SAX2_H__ */
|
@@ -0,0 +1,128 @@
|
|
1
|
+
/*
|
2
|
+
* Summary: Provide Canonical XML and Exclusive XML Canonicalization
|
3
|
+
* Description: the c14n modules provides a
|
4
|
+
*
|
5
|
+
* "Canonical XML" implementation
|
6
|
+
* http://www.w3.org/TR/xml-c14n
|
7
|
+
*
|
8
|
+
* and an
|
9
|
+
*
|
10
|
+
* "Exclusive XML Canonicalization" implementation
|
11
|
+
* http://www.w3.org/TR/xml-exc-c14n
|
12
|
+
|
13
|
+
* Copy: See Copyright for the status of this software.
|
14
|
+
*
|
15
|
+
* Author: Aleksey Sanin <aleksey@aleksey.com>
|
16
|
+
*/
|
17
|
+
#ifndef __XML_C14N_H__
|
18
|
+
#define __XML_C14N_H__
|
19
|
+
|
20
|
+
#include <libxml/xmlversion.h>
|
21
|
+
|
22
|
+
#ifdef LIBXML_C14N_ENABLED
|
23
|
+
#ifdef LIBXML_OUTPUT_ENABLED
|
24
|
+
|
25
|
+
#include <libxml/tree.h>
|
26
|
+
#include <libxml/xpath.h>
|
27
|
+
|
28
|
+
#ifdef __cplusplus
|
29
|
+
extern "C" {
|
30
|
+
#endif /* __cplusplus */
|
31
|
+
|
32
|
+
/*
|
33
|
+
* XML Canonicalization
|
34
|
+
* http://www.w3.org/TR/xml-c14n
|
35
|
+
*
|
36
|
+
* Exclusive XML Canonicalization
|
37
|
+
* http://www.w3.org/TR/xml-exc-c14n
|
38
|
+
*
|
39
|
+
* Canonical form of an XML document could be created if and only if
|
40
|
+
* a) default attributes (if any) are added to all nodes
|
41
|
+
* b) all character and parsed entity references are resolved
|
42
|
+
* In order to achieve this in libxml2 the document MUST be loaded with
|
43
|
+
* following global settings:
|
44
|
+
*
|
45
|
+
* xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS;
|
46
|
+
* xmlSubstituteEntitiesDefault(1);
|
47
|
+
*
|
48
|
+
* or corresponding parser context setting:
|
49
|
+
* xmlParserCtxtPtr ctxt;
|
50
|
+
*
|
51
|
+
* ...
|
52
|
+
* ctxt->loadsubset = XML_DETECT_IDS | XML_COMPLETE_ATTRS;
|
53
|
+
* ctxt->replaceEntities = 1;
|
54
|
+
* ...
|
55
|
+
*/
|
56
|
+
|
57
|
+
/*
|
58
|
+
* xmlC14NMode:
|
59
|
+
*
|
60
|
+
* Predefined values for C14N modes
|
61
|
+
*
|
62
|
+
*/
|
63
|
+
typedef enum {
|
64
|
+
XML_C14N_1_0 = 0, /* Original C14N 1.0 spec */
|
65
|
+
XML_C14N_EXCLUSIVE_1_0 = 1, /* Exclusive C14N 1.0 spec */
|
66
|
+
XML_C14N_1_1 = 2 /* C14N 1.1 spec */
|
67
|
+
} xmlC14NMode;
|
68
|
+
|
69
|
+
XMLPUBFUN int XMLCALL
|
70
|
+
xmlC14NDocSaveTo (xmlDocPtr doc,
|
71
|
+
xmlNodeSetPtr nodes,
|
72
|
+
int mode, /* a xmlC14NMode */
|
73
|
+
xmlChar **inclusive_ns_prefixes,
|
74
|
+
int with_comments,
|
75
|
+
xmlOutputBufferPtr buf);
|
76
|
+
|
77
|
+
XMLPUBFUN int XMLCALL
|
78
|
+
xmlC14NDocDumpMemory (xmlDocPtr doc,
|
79
|
+
xmlNodeSetPtr nodes,
|
80
|
+
int mode, /* a xmlC14NMode */
|
81
|
+
xmlChar **inclusive_ns_prefixes,
|
82
|
+
int with_comments,
|
83
|
+
xmlChar **doc_txt_ptr);
|
84
|
+
|
85
|
+
XMLPUBFUN int XMLCALL
|
86
|
+
xmlC14NDocSave (xmlDocPtr doc,
|
87
|
+
xmlNodeSetPtr nodes,
|
88
|
+
int mode, /* a xmlC14NMode */
|
89
|
+
xmlChar **inclusive_ns_prefixes,
|
90
|
+
int with_comments,
|
91
|
+
const char* filename,
|
92
|
+
int compression);
|
93
|
+
|
94
|
+
|
95
|
+
/**
|
96
|
+
* This is the core C14N function
|
97
|
+
*/
|
98
|
+
/**
|
99
|
+
* xmlC14NIsVisibleCallback:
|
100
|
+
* @user_data: user data
|
101
|
+
* @node: the current node
|
102
|
+
* @parent: the parent node
|
103
|
+
*
|
104
|
+
* Signature for a C14N callback on visible nodes
|
105
|
+
*
|
106
|
+
* Returns 1 if the node should be included
|
107
|
+
*/
|
108
|
+
typedef int (*xmlC14NIsVisibleCallback) (void* user_data,
|
109
|
+
xmlNodePtr node,
|
110
|
+
xmlNodePtr parent);
|
111
|
+
|
112
|
+
XMLPUBFUN int XMLCALL
|
113
|
+
xmlC14NExecute (xmlDocPtr doc,
|
114
|
+
xmlC14NIsVisibleCallback is_visible_callback,
|
115
|
+
void* user_data,
|
116
|
+
int mode, /* a xmlC14NMode */
|
117
|
+
xmlChar **inclusive_ns_prefixes,
|
118
|
+
int with_comments,
|
119
|
+
xmlOutputBufferPtr buf);
|
120
|
+
|
121
|
+
#ifdef __cplusplus
|
122
|
+
}
|
123
|
+
#endif /* __cplusplus */
|
124
|
+
|
125
|
+
#endif /* LIBXML_OUTPUT_ENABLED */
|
126
|
+
#endif /* LIBXML_C14N_ENABLED */
|
127
|
+
#endif /* __XML_C14N_H__ */
|
128
|
+
|
@@ -0,0 +1,182 @@
|
|
1
|
+
/**
|
2
|
+
* Summary: interfaces to the Catalog handling system
|
3
|
+
* Description: the catalog module implements the support for
|
4
|
+
* XML Catalogs and SGML catalogs
|
5
|
+
*
|
6
|
+
* SGML Open Technical Resolution TR9401:1997.
|
7
|
+
* http://www.jclark.com/sp/catalog.htm
|
8
|
+
*
|
9
|
+
* XML Catalogs Working Draft 06 August 2001
|
10
|
+
* http://www.oasis-open.org/committees/entity/spec-2001-08-06.html
|
11
|
+
*
|
12
|
+
* Copy: See Copyright for the status of this software.
|
13
|
+
*
|
14
|
+
* Author: Daniel Veillard
|
15
|
+
*/
|
16
|
+
|
17
|
+
#ifndef __XML_CATALOG_H__
|
18
|
+
#define __XML_CATALOG_H__
|
19
|
+
|
20
|
+
#include <stdio.h>
|
21
|
+
|
22
|
+
#include <libxml/xmlversion.h>
|
23
|
+
#include <libxml/xmlstring.h>
|
24
|
+
#include <libxml/tree.h>
|
25
|
+
|
26
|
+
#ifdef LIBXML_CATALOG_ENABLED
|
27
|
+
|
28
|
+
#ifdef __cplusplus
|
29
|
+
extern "C" {
|
30
|
+
#endif
|
31
|
+
|
32
|
+
/**
|
33
|
+
* XML_CATALOGS_NAMESPACE:
|
34
|
+
*
|
35
|
+
* The namespace for the XML Catalogs elements.
|
36
|
+
*/
|
37
|
+
#define XML_CATALOGS_NAMESPACE \
|
38
|
+
(const xmlChar *) "urn:oasis:names:tc:entity:xmlns:xml:catalog"
|
39
|
+
/**
|
40
|
+
* XML_CATALOG_PI:
|
41
|
+
*
|
42
|
+
* The specific XML Catalog Processing Instruction name.
|
43
|
+
*/
|
44
|
+
#define XML_CATALOG_PI \
|
45
|
+
(const xmlChar *) "oasis-xml-catalog"
|
46
|
+
|
47
|
+
/*
|
48
|
+
* The API is voluntarily limited to general cataloging.
|
49
|
+
*/
|
50
|
+
typedef enum {
|
51
|
+
XML_CATA_PREFER_NONE = 0,
|
52
|
+
XML_CATA_PREFER_PUBLIC = 1,
|
53
|
+
XML_CATA_PREFER_SYSTEM
|
54
|
+
} xmlCatalogPrefer;
|
55
|
+
|
56
|
+
typedef enum {
|
57
|
+
XML_CATA_ALLOW_NONE = 0,
|
58
|
+
XML_CATA_ALLOW_GLOBAL = 1,
|
59
|
+
XML_CATA_ALLOW_DOCUMENT = 2,
|
60
|
+
XML_CATA_ALLOW_ALL = 3
|
61
|
+
} xmlCatalogAllow;
|
62
|
+
|
63
|
+
typedef struct _xmlCatalog xmlCatalog;
|
64
|
+
typedef xmlCatalog *xmlCatalogPtr;
|
65
|
+
|
66
|
+
/*
|
67
|
+
* Operations on a given catalog.
|
68
|
+
*/
|
69
|
+
XMLPUBFUN xmlCatalogPtr XMLCALL
|
70
|
+
xmlNewCatalog (int sgml);
|
71
|
+
XMLPUBFUN xmlCatalogPtr XMLCALL
|
72
|
+
xmlLoadACatalog (const char *filename);
|
73
|
+
XMLPUBFUN xmlCatalogPtr XMLCALL
|
74
|
+
xmlLoadSGMLSuperCatalog (const char *filename);
|
75
|
+
XMLPUBFUN int XMLCALL
|
76
|
+
xmlConvertSGMLCatalog (xmlCatalogPtr catal);
|
77
|
+
XMLPUBFUN int XMLCALL
|
78
|
+
xmlACatalogAdd (xmlCatalogPtr catal,
|
79
|
+
const xmlChar *type,
|
80
|
+
const xmlChar *orig,
|
81
|
+
const xmlChar *replace);
|
82
|
+
XMLPUBFUN int XMLCALL
|
83
|
+
xmlACatalogRemove (xmlCatalogPtr catal,
|
84
|
+
const xmlChar *value);
|
85
|
+
XMLPUBFUN xmlChar * XMLCALL
|
86
|
+
xmlACatalogResolve (xmlCatalogPtr catal,
|
87
|
+
const xmlChar *pubID,
|
88
|
+
const xmlChar *sysID);
|
89
|
+
XMLPUBFUN xmlChar * XMLCALL
|
90
|
+
xmlACatalogResolveSystem(xmlCatalogPtr catal,
|
91
|
+
const xmlChar *sysID);
|
92
|
+
XMLPUBFUN xmlChar * XMLCALL
|
93
|
+
xmlACatalogResolvePublic(xmlCatalogPtr catal,
|
94
|
+
const xmlChar *pubID);
|
95
|
+
XMLPUBFUN xmlChar * XMLCALL
|
96
|
+
xmlACatalogResolveURI (xmlCatalogPtr catal,
|
97
|
+
const xmlChar *URI);
|
98
|
+
#ifdef LIBXML_OUTPUT_ENABLED
|
99
|
+
XMLPUBFUN void XMLCALL
|
100
|
+
xmlACatalogDump (xmlCatalogPtr catal,
|
101
|
+
FILE *out);
|
102
|
+
#endif /* LIBXML_OUTPUT_ENABLED */
|
103
|
+
XMLPUBFUN void XMLCALL
|
104
|
+
xmlFreeCatalog (xmlCatalogPtr catal);
|
105
|
+
XMLPUBFUN int XMLCALL
|
106
|
+
xmlCatalogIsEmpty (xmlCatalogPtr catal);
|
107
|
+
|
108
|
+
/*
|
109
|
+
* Global operations.
|
110
|
+
*/
|
111
|
+
XMLPUBFUN void XMLCALL
|
112
|
+
xmlInitializeCatalog (void);
|
113
|
+
XMLPUBFUN int XMLCALL
|
114
|
+
xmlLoadCatalog (const char *filename);
|
115
|
+
XMLPUBFUN void XMLCALL
|
116
|
+
xmlLoadCatalogs (const char *paths);
|
117
|
+
XMLPUBFUN void XMLCALL
|
118
|
+
xmlCatalogCleanup (void);
|
119
|
+
#ifdef LIBXML_OUTPUT_ENABLED
|
120
|
+
XMLPUBFUN void XMLCALL
|
121
|
+
xmlCatalogDump (FILE *out);
|
122
|
+
#endif /* LIBXML_OUTPUT_ENABLED */
|
123
|
+
XMLPUBFUN xmlChar * XMLCALL
|
124
|
+
xmlCatalogResolve (const xmlChar *pubID,
|
125
|
+
const xmlChar *sysID);
|
126
|
+
XMLPUBFUN xmlChar * XMLCALL
|
127
|
+
xmlCatalogResolveSystem (const xmlChar *sysID);
|
128
|
+
XMLPUBFUN xmlChar * XMLCALL
|
129
|
+
xmlCatalogResolvePublic (const xmlChar *pubID);
|
130
|
+
XMLPUBFUN xmlChar * XMLCALL
|
131
|
+
xmlCatalogResolveURI (const xmlChar *URI);
|
132
|
+
XMLPUBFUN int XMLCALL
|
133
|
+
xmlCatalogAdd (const xmlChar *type,
|
134
|
+
const xmlChar *orig,
|
135
|
+
const xmlChar *replace);
|
136
|
+
XMLPUBFUN int XMLCALL
|
137
|
+
xmlCatalogRemove (const xmlChar *value);
|
138
|
+
XMLPUBFUN xmlDocPtr XMLCALL
|
139
|
+
xmlParseCatalogFile (const char *filename);
|
140
|
+
XMLPUBFUN int XMLCALL
|
141
|
+
xmlCatalogConvert (void);
|
142
|
+
|
143
|
+
/*
|
144
|
+
* Strictly minimal interfaces for per-document catalogs used
|
145
|
+
* by the parser.
|
146
|
+
*/
|
147
|
+
XMLPUBFUN void XMLCALL
|
148
|
+
xmlCatalogFreeLocal (void *catalogs);
|
149
|
+
XMLPUBFUN void * XMLCALL
|
150
|
+
xmlCatalogAddLocal (void *catalogs,
|
151
|
+
const xmlChar *URL);
|
152
|
+
XMLPUBFUN xmlChar * XMLCALL
|
153
|
+
xmlCatalogLocalResolve (void *catalogs,
|
154
|
+
const xmlChar *pubID,
|
155
|
+
const xmlChar *sysID);
|
156
|
+
XMLPUBFUN xmlChar * XMLCALL
|
157
|
+
xmlCatalogLocalResolveURI(void *catalogs,
|
158
|
+
const xmlChar *URI);
|
159
|
+
/*
|
160
|
+
* Preference settings.
|
161
|
+
*/
|
162
|
+
XMLPUBFUN int XMLCALL
|
163
|
+
xmlCatalogSetDebug (int level);
|
164
|
+
XMLPUBFUN xmlCatalogPrefer XMLCALL
|
165
|
+
xmlCatalogSetDefaultPrefer(xmlCatalogPrefer prefer);
|
166
|
+
XMLPUBFUN void XMLCALL
|
167
|
+
xmlCatalogSetDefaults (xmlCatalogAllow allow);
|
168
|
+
XMLPUBFUN xmlCatalogAllow XMLCALL
|
169
|
+
xmlCatalogGetDefaults (void);
|
170
|
+
|
171
|
+
|
172
|
+
/* DEPRECATED interfaces */
|
173
|
+
XMLPUBFUN const xmlChar * XMLCALL
|
174
|
+
xmlCatalogGetSystem (const xmlChar *sysID);
|
175
|
+
XMLPUBFUN const xmlChar * XMLCALL
|
176
|
+
xmlCatalogGetPublic (const xmlChar *pubID);
|
177
|
+
|
178
|
+
#ifdef __cplusplus
|
179
|
+
}
|
180
|
+
#endif
|
181
|
+
#endif /* LIBXML_CATALOG_ENABLED */
|
182
|
+
#endif /* __XML_CATALOG_H__ */
|