Home
last modified time | relevance | path

Searched refs:sax (Results 1 – 25 of 106) sorted by relevance

12345

/third_party/libxml2/
Dlegacy.c202 *((xmlSAXHandlerPtr *) result) = ctxt->sax; in xmlGetFeature()
204 *((internalSubsetSAXFunc *) result) = ctxt->sax->internalSubset; in xmlGetFeature()
206 *((isStandaloneSAXFunc *) result) = ctxt->sax->isStandalone; in xmlGetFeature()
209 ctxt->sax->hasInternalSubset; in xmlGetFeature()
212 ctxt->sax->hasExternalSubset; in xmlGetFeature()
214 *((resolveEntitySAXFunc *) result) = ctxt->sax->resolveEntity; in xmlGetFeature()
216 *((getEntitySAXFunc *) result) = ctxt->sax->getEntity; in xmlGetFeature()
218 *((entityDeclSAXFunc *) result) = ctxt->sax->entityDecl; in xmlGetFeature()
220 *((notationDeclSAXFunc *) result) = ctxt->sax->notationDecl; in xmlGetFeature()
222 *((attributeDeclSAXFunc *) result) = ctxt->sax->attributeDecl; in xmlGetFeature()
[all …]
DHTMLparser.c1539 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlAutoCloseOnClose()
1540 ctxt->sax->endElement(ctxt->userData, ctxt->name); in htmlAutoCloseOnClose()
1559 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlAutoCloseOnEnd()
1560 ctxt->sax->endElement(ctxt->userData, ctxt->name); in htmlAutoCloseOnEnd()
1582 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlAutoClose()
1583 ctxt->sax->endElement(ctxt->userData, ctxt->name); in htmlAutoClose()
1594 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlAutoClose()
1595 ctxt->sax->endElement(ctxt->userData, ctxt->name); in htmlAutoClose()
1673 if ((ctxt->sax != NULL) && (ctxt->sax->startElement != NULL)) in htmlCheckImplied()
1674 ctxt->sax->startElement(ctxt->userData, BAD_CAST"html", NULL); in htmlCheckImplied()
[all …]
Dparser.c320 xmlSAXHandlerPtr sax,
643 if ((ctxt != NULL) && (ctxt->sax != NULL) && in xmlWarningMsg()
644 (ctxt->sax->initialized == XML_SAX2_MAGIC)) in xmlWarningMsg()
645 schannel = ctxt->sax->serror; in xmlWarningMsg()
648 (ctxt->sax) ? ctxt->sax->warning : NULL, in xmlWarningMsg()
683 if ((ctxt->sax != NULL) && (ctxt->sax->initialized == XML_SAX2_MAGIC)) in xmlValidityError()
684 schannel = ctxt->sax->serror; in xmlValidityError()
1108 xmlSAXHandlerPtr sax; in xmlDetectSAX2() local
1110 sax = ctxt->sax; in xmlDetectSAX2()
1112 if ((sax) && (sax->initialized == XML_SAX2_MAGIC) && in xmlDetectSAX2()
[all …]
DDOCBparser.c143 docbCreatePushParserCtxt(docbSAXHandlerPtr sax ATTRIBUTE_UNUSED, in docbCreatePushParserCtxt()
158 return(xmlCreatePushParserCtxt(sax, user_data, chunk, size, filename)); in docbCreatePushParserCtxt()
178 docbSAXHandlerPtr sax ATTRIBUTE_UNUSED, in docbSAXParseDoc()
189 return (xmlSAXParseMemoryWithData(sax, (const char *)cur, in docbSAXParseDoc()
263 docbSAXHandlerPtr sax ATTRIBUTE_UNUSED, in docbSAXParseFile()
274 return (xmlSAXParseFileWithData(sax, filename, 0, userData)); in docbSAXParseFile()
Dxmlreader.c136 xmlSAXHandlerPtr sax; /* the parser SAX callbacks */ member
2165 ret->sax = (xmlSAXHandler *) xmlMalloc(sizeof(xmlSAXHandler)); in xmlNewTextReader()
2166 if (ret->sax == NULL) { in xmlNewTextReader()
2173 xmlSAXVersion(ret->sax, 2); in xmlNewTextReader()
2174 ret->startElement = ret->sax->startElement; in xmlNewTextReader()
2175 ret->sax->startElement = xmlTextReaderStartElement; in xmlNewTextReader()
2176 ret->endElement = ret->sax->endElement; in xmlNewTextReader()
2177 ret->sax->endElement = xmlTextReaderEndElement; in xmlNewTextReader()
2179 if (ret->sax->initialized == XML_SAX2_MAGIC) { in xmlNewTextReader()
2181 ret->startElementNs = ret->sax->startElementNs; in xmlNewTextReader()
[all …]
DSAX2.c66 if ((ctxt->sax != NULL) && (ctxt->sax->initialized == XML_SAX2_MAGIC)) in xmlSAX2ErrMemory()
67 schannel = ctxt->sax->serror; in xmlSAX2ErrMemory()
108 if ((ctxt->sax != NULL) && (ctxt->sax->initialized == XML_SAX2_MAGIC)) in xmlErrValid()
109 schannel = ctxt->sax->serror; in xmlErrValid()
420 if ((ctxt->sax != NULL) && (ctxt->sax->resolveEntity != NULL)) in xmlSAX2ExternalSubset()
421 input = ctxt->sax->resolveEntity(ctxt->userData, ExternalID, in xmlSAX2ExternalSubset()
669 (ctxt->sax != NULL) && (ctxt->sax->warning != NULL)) in xmlSAX2EntityDecl()
670 ctxt->sax->warning(ctxt->userData, in xmlSAX2EntityDecl()
887 (ctxt->sax != NULL) && (ctxt->sax->warning != NULL)) in xmlSAX2UnparsedEntityDecl()
888 ctxt->sax->warning(ctxt->userData, in xmlSAX2UnparsedEntityDecl()
[all …]
/third_party/json/include/nlohmann/detail/input/
Dbinary_reader.hpp102 sax = sax_; in sax_parse()
142 return sax->parse_error(chars_read, get_token_string(), in sax_parse()
164 if (JSON_HEDLEY_UNLIKELY(!sax->start_object(std::size_t(-1)))) in parse_bson_internal()
174 return sax->end_object(); in parse_bson_internal()
219 …return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_mes… in get_bson_string()
240 …return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_mes… in get_bson_binary()
269 …return get_number<double, true>(input_format_t::bson, number) && sax->number_float(static_cast<num… in parse_bson_element_internal()
276 …td::int32_t, true>(input_format_t::bson, len) && get_bson_string(len, value) && sax->string(value); in parse_bson_element_internal()
293 …td::int32_t, true>(input_format_t::bson, len) && get_bson_binary(len, value) && sax->binary(value); in parse_bson_element_internal()
298 return sax->boolean(get() != 0); in parse_bson_element_internal()
[all …]
Dparser.hpp153 bool sax_parse(SAX* sax, const bool strict = true) in sax_parse() argument
156 const bool result = sax_parse_internal(sax); in sax_parse()
161 return sax->parse_error(m_lexer.get_position(), in sax_parse()
172 bool sax_parse_internal(SAX* sax) in sax_parse_internal() argument
189 if (JSON_HEDLEY_UNLIKELY(!sax->start_object(std::size_t(-1)))) in sax_parse_internal()
197 if (JSON_HEDLEY_UNLIKELY(!sax->end_object())) in sax_parse_internal()
207 return sax->parse_error(m_lexer.get_position(), in sax_parse_internal()
211 if (JSON_HEDLEY_UNLIKELY(!sax->key(m_lexer.get_string()))) in sax_parse_internal()
219 return sax->parse_error(m_lexer.get_position(), in sax_parse_internal()
234 if (JSON_HEDLEY_UNLIKELY(!sax->start_array(std::size_t(-1)))) in sax_parse_internal()
[all …]
/third_party/python/Doc/library/
Dxml.sax.rst1 :mod:`xml.sax` --- Support for SAX2 parsers
4 .. module:: xml.sax
11 **Source code:** :source:`Lib/xml/sax/__init__.py`
15 The :mod:`xml.sax` package provides a number of modules which implement the
23 The :mod:`xml.sax` module is not secure against maliciously
33 :meth:`~xml.sax.xmlreader.XMLReader.setFeature` on the parser object
34 and argument :data:`~xml.sax.handler.feature_external_ges`.
41 Create and return a SAX :class:`~xml.sax.xmlreader.XMLReader` object. The
86 :class:`~xml.sax.xmlreader.InputSource`, :class:`~xml.sax.xmlreader.Locator`,
87 :class:`~xml.sax.xmlreader.Attributes`, :class:`~xml.sax.xmlreader.AttributesNS`,
[all …]
Dmarkup.rst23 xml.sax.rst
24 xml.sax.handler.rst
25 xml.sax.utils.rst
26 xml.sax.reader.rst
Dxml.sax.utils.rst1 :mod:`xml.sax.saxutils` --- SAX Utilities
4 .. module:: xml.sax.saxutils
10 **Source code:** :source:`Lib/xml/sax/saxutils.py`
14 The module :mod:`xml.sax.saxutils` contains a number of classes and functions
59 This class implements the :class:`~xml.sax.handler.ContentHandler` interface
76 :class:`~xml.sax.xmlreader.XMLReader` and the client
86 fully resolved :class:`~xml.sax.xmlreader.InputSource` object ready for
88 an :class:`~xml.sax.xmlreader.InputSource` object; parsers will use this
Dxml.sax.handler.rst1 :mod:`xml.sax.handler` --- Base classes for SAX handlers
4 .. module:: xml.sax.handler
10 **Source code:** :source:`Lib/xml/sax/handler.py`
19 module :mod:`xml.sax.handler`, so that all methods get default implementations.
56 In addition to these classes, :mod:`xml.sax.handler` provides symbolic constants
62 | value: ``"http://xml.org/sax/features/namespaces"``
71 | value: ``"http://xml.org/sax/features/namespace-prefixes"``
81 | value: ``"http://xml.org/sax/features/string-interning"``
90 | value: ``"http://xml.org/sax/features/validation"``
99 | value: ``"http://xml.org/sax/features/external-general-entities"``
[all …]
Dxml.sax.reader.rst1 :mod:`xml.sax.xmlreader` --- Interface for XML parsers
4 .. module:: xml.sax.xmlreader
10 **Source code:** :source:`Lib/xml/sax/xmlreader.py`
16 function is invoked by :func:`xml.sax.make_parser` with no arguments to create
119 Return the current :class:`~xml.sax.handler.ContentHandler`.
124 Set the current :class:`~xml.sax.handler.ContentHandler`. If no
125 :class:`~xml.sax.handler.ContentHandler` is set, content events will be
131 Return the current :class:`~xml.sax.handler.DTDHandler`.
136 Set the current :class:`~xml.sax.handler.DTDHandler`. If no
137 :class:`~xml.sax.handler.DTDHandler` is set, DTD
[all …]
Dxml.dom.pulldom.rst35 from xml.sax import make_parser
36 from xml.sax.handler import feature_external_ges
80 Subclass of :class:`xml.sax.handler.ContentHandler`.
85 Subclass of :class:`xml.sax.handler.ContentHandler`.
92 :class:`~xml.sax.xmlreader.XMLReader` object. This function will change the
/third_party/libxml2/include/libxml/
Dparser.h187 struct _xmlSAXHandler *sax; /* The SAX handler */ member
884 xmlSAXUserParseFile (xmlSAXHandlerPtr sax,
888 xmlSAXUserParseMemory (xmlSAXHandlerPtr sax,
893 xmlSAXParseDoc (xmlSAXHandlerPtr sax,
897 xmlSAXParseMemory (xmlSAXHandlerPtr sax,
902 xmlSAXParseMemoryWithData (xmlSAXHandlerPtr sax,
908 xmlSAXParseFile (xmlSAXHandlerPtr sax,
912 xmlSAXParseFileWithData (xmlSAXHandlerPtr sax,
917 xmlSAXParseEntity (xmlSAXHandlerPtr sax,
925 xmlSAXParseDTD (xmlSAXHandlerPtr sax,
[all …]
DDOCBparser.h53 docbSAXHandlerPtr sax,
61 docbSAXHandlerPtr sax,
73 docbCreatePushParserCtxt(docbSAXHandlerPtr sax,
/third_party/vk-gl-cts/scripts/log/
Dbottleneck_report.py26 import xml.sax
27 import xml.sax.handler
47 class XMLLogHandlerTests(xml.sax.handler.ContentHandler) :
76 class XMLLogHandlerGroups(xml.sax.handler.ContentHandler) :
129 class LogErrorHandler(xml.sax.handler.ErrorHandler) :
161 xml.sax.parseString(result.log, handler, errHandler)
177 xml.sax.parseString(lines, handlerGroups, errHandler)
Dlog_to_xml.py27 import xml.sax
28 import xml.sax.handler
34 class BuildXMLLogHandler(xml.sax.handler.ContentHandler):
85 class LogErrorHandler(xml.sax.handler.ErrorHandler):
115 xml.sax.parseString(result.log, handler, errHandler)
/third_party/typescript/tests/baselines/reference/user/
Dsoap.log9 …ould not find a declaration file for module 'sax'. '../../../tests/cases/user/soap/node_modules/sa…
10 …Try `npm i --save-dev @types/sax` if it exists or add a new declaration (.d.ts) file containing `d…
/third_party/python/Lib/xml/sax/
Dexpatreader.py8 from xml.sax._exceptions import *
9 from xml.sax.handler import feature_validation, feature_namespaces
10 from xml.sax.handler import feature_namespace_prefixes
11 from xml.sax.handler import feature_external_ges, feature_external_pes
12 from xml.sax.handler import feature_string_interning
13 from xml.sax.handler import property_xml_string, property_interning_dict
28 from xml.sax import xmlreader, saxutils, handler
442 import xml.sax.saxutils
444 p.setContentHandler(xml.sax.saxutils.XMLGenerator())
445 p.setErrorHandler(xml.sax.ErrorHandler())
/third_party/json/doc/mkdocs/docs/api/basic_json/
Dsax_parse.md7 SAX* sax,
15 SAX* sax,
54 `sax` (in)
83 consumer `sax` has a super-linear complexity.
/third_party/python/Lib/xml/dom/
Dpulldom.py1 import xml.sax
2 import xml.sax.handler
13 class PullDOM(xml.sax.ContentHandler):
216 self.parser.setFeature(xml.sax.handler.feature_namespaces, 1)
339 parser = xml.sax.make_parser()
348 parser = xml.sax.make_parser()
/third_party/json/test/src/
Dunit-disabled_exceptions.cpp64 sax_no_exception sax(j);
66 CHECK (!json::sax_parse("xyz", &sax));
/third_party/icu/tools/currency/src/com/ibm/icu/dev/tool/currency/
DCurrencyDataParser.java21 import org.xml.sax.Attributes;
22 import org.xml.sax.SAXException;
23 import org.xml.sax.helpers.DefaultHandler;
/third_party/json/single_include/nlohmann/
Djson.hpp8392 sax = sax_; in sax_parse()
8432 return sax->parse_error(chars_read, get_token_string(), in sax_parse()
8454 if (JSON_HEDLEY_UNLIKELY(!sax->start_object(std::size_t(-1)))) in parse_bson_internal()
8464 return sax->end_object(); in parse_bson_internal()
8509 …return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_mes… in get_bson_string()
8530 …return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_mes… in get_bson_binary()
8559 …return get_number<double, true>(input_format_t::bson, number) && sax->number_float(static_cast<num… in parse_bson_element_internal()
8566 …td::int32_t, true>(input_format_t::bson, len) && get_bson_string(len, value) && sax->string(value); in parse_bson_element_internal()
8583 …td::int32_t, true>(input_format_t::bson, len) && get_bson_binary(len, value) && sax->binary(value); in parse_bson_element_internal()
8588 return sax->boolean(get() != 0); in parse_bson_element_internal()
[all …]

12345