ReactOS
0.4.15-dev-4869-g35a816a
|
#include "libxml.h"
#include <string.h>
#include <stdarg.h>
#include <assert.h>
#include <time.h>
#include <sys/timeb.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
#include <libxml/parserInternals.h>
#include <libxml/HTMLparser.h>
#include <libxml/HTMLtree.h>
#include <libxml/tree.h>
#include <libxml/xpath.h>
#include <libxml/debugXML.h>
#include <libxml/xmlerror.h>
#include <libxml/globals.h>
#include <libxml/xmlreader.h>
Go to the source code of this file.
Macros | |
#define | XML_XML_DEFAULT_CATALOG "file:///etc/xml/catalog" |
#define | MAX_PATHS 64 |
#define | PATH_SEPARATOR ':' |
#define | CLOCKS_PER_SEC 100 |
Enumerations | |
enum | xmllintReturnCode { XMLLINT_RETURN_OK = 0, XMLLINT_ERR_UNCLASS = 1, XMLLINT_ERR_DTD = 2, XMLLINT_ERR_VALID = 3, XMLLINT_ERR_RDFILE = 4, XMLLINT_ERR_SCHEMACOMP = 5, XMLLINT_ERR_OUT = 6, XMLLINT_ERR_SCHEMAPAT = 7, XMLLINT_ERR_RDREGIS = 8, XMLLINT_ERR_MEM = 9, XMLLINT_ERR_XPATH = 10 } |
Variables | |
static int | debug = 0 |
static int | maxmem = 0 |
static int | recovery = 0 |
static int | noent = 0 |
static int | noenc = 0 |
static int | noblanks = 0 |
static int | noout = 0 |
static int | nowrap = 0 |
static int | repeat = 0 |
static int | insert = 0 |
static int | htmlout = 0 |
static int | testIO = 0 |
static char * | encoding = NULL |
static int | dtdattrs = 0 |
static int | loaddtd = 0 |
static xmllintReturnCode | progresult = XMLLINT_RETURN_OK |
static int | quiet = 0 |
static int | timing = 0 |
static int | generate = 0 |
static int | dropdtd = 0 |
static int | chkregister = 0 |
static int | nbregister = 0 |
static int | options = XML_PARSE_COMPACT | XML_PARSE_BIG_LINES |
static int | sax = 0 |
static int | oldxml10 = 0 |
static xmlChar * | paths [MAX_PATHS+1] |
static int | nbpaths = 0 |
static int | load_trace = 0 |
static xmlExternalEntityLoader | defaultEntityLoader = NULL |
static clock_t | begin |
static clock_t | end |
static char | buffer [50000] |
static xmlSAXHandler | emptySAXHandlerStruct |
static xmlSAXHandlerPtr | emptySAXHandler = &emptySAXHandlerStruct |
static int | callbacks |
: The entity name | |
referenceDebug: @ctxt: An XML parser context called when an entity reference is detected. | |
xmlSAXHandlerPtr | debugSAXHandler = &debugSAXHandlerStruct |
static xmlSAXHandler | debugSAXHandlerStruct |
static void | entityDeclDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, int type, const xmlChar *publicId, const xmlChar *systemId, xmlChar *content) |
static void | referenceDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *name) |
static void | ignorableWhitespaceDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *ch, int len) |
static void | processingInstructionDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *target, const xmlChar *data) |
static void | cdataBlockDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *value, int len) |
static void | commentDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *value) |
Definition at line 93 of file xmllint.c.
|
static |
Definition at line 1097 of file xmllint.c.
cdataBlockDebug: @ctx: the user data (XML parser context) @value: The pcdata content @len: the block length
called when a pcdata block has been parsed
Definition at line 1372 of file xmllint.c.
charactersDebug: @ctxt: An XML parser context @ch: a xmlChar string @len: the number of xmlChar
receiving some chars from the parser. Question: how much at a time ???
Definition at line 1283 of file xmllint.c.
commentDebug: @ctxt: An XML parser context @value: the comment content
A comment has been parsed.
Definition at line 1389 of file xmllint.c.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
ignorableWhitespaceDebug: @ctxt: An XML parser context @ch: a xmlChar string @start: the first char in the string @len: the number of xmlChar
receiving some ignorable whitespaces from the parser. Question: how much at a time ???
Definition at line 1325 of file xmllint.c.
|
static |
Definition at line 473 of file xmllint.c.
xmlHTMLError: @ctx: an XML parser context @msg: the message to display/transmit ...: extra parameters for the message display
Display and format an error messages, gives file, line, position and extra parameters.
xmlHTMLWarning: @ctx: an XML parser context @msg: the message to display/transmit ...: extra parameters for the message display
Display and format a warning messages, gives file, line, position and extra parameters.
xmlHTMLValidityError: @ctx: an XML parser context @msg: the message to display/transmit ...: extra parameters for the message display
Display and format an validity error messages, gives file, line, position and extra parameters.
xmlHTMLValidityWarning: @ctx: an XML parser context @msg: the message to display/transmit ...: extra parameters for the message display
Display and format a validity warning messages, gives file, line, position and extra parameters.
warningDebug: @ctxt: An XML parser context @msg: the message to display/transmit ...: extra parameters for the message display
Display and format a warning messages, gives file, line, position and extra parameters.
errorDebug: @ctxt: An XML parser context @msg: the message to display/transmit ...: extra parameters for the message display
Display and format a error messages, gives file, line, position and extra parameters.
fatalErrorDebug: @ctxt: An XML parser context @msg: the message to display/transmit ...: extra parameters for the message display
Display and format a fatalError messages, gives file, line, position and extra parameters.
Definition at line 628 of file xmllint.c.
Definition at line 3129 of file xmllint.c.
Definition at line 827 of file xmllint.c.
Referenced by parseAndPrintFile().
Definition at line 344 of file xmllint.c.
Referenced by main().
Definition at line 824 of file xmllint.c.
Referenced by parseAndPrintFile().
Definition at line 359 of file xmllint.c.
Referenced by main().
|
static |
Definition at line 332 of file xmllint.c.
Referenced by myMallocFunc(), myReallocFunc(), and myStrdupFunc().
|
static |
Definition at line 2169 of file xmllint.c.
Referenced by main().
Definition at line 218 of file xmllint.c.
Referenced by main().
|
static |
processingInstructionDebug: @ctxt: An XML parser context @target: the target name @data: the PI data's @len: the number of xmlChar
A processing instruction has been parsed.
Definition at line 1349 of file xmllint.c.
|
static |
Definition at line 3109 of file xmllint.c.
Referenced by main().
|
static |
resolveEntityDebug: @ctxt: An XML parser context @publicId: The public ID of the entity @systemId: The system ID of the entity
Special entity resolver, better left to the parser, it has more context than the application layer. The default behaviour is to NOT resolve the entities, in that case the ENTITY_REF nodes are built in the structure (and the parameter values).
Returns the xmlParserInputPtr if inlined or NULL for DOM behaviour.
Definition at line 999 of file xmllint.c.
|
static |
setDocumentLocatorDebug: @ctxt: An XML parser context @loc: A SAX Locator
Receive the document locator at startup, actually xmlDefaultSAXLocator Everything is available on the context, so this is useless in our case.
Definition at line 1193 of file xmllint.c.
Definition at line 2949 of file xmllint.c.
Referenced by main().
|
static |
Definition at line 1239 of file xmllint.c.
|
static |
Definition at line 1514 of file xmllint.c.
Definition at line 469 of file xmllint.c.
Referenced by main(), QMyMainWindow::mousePressEvent(), parseAndPrintFile(), FxTimer::Start(), and FxIoTarget::SubmitLocked().
Definition at line 1628 of file xmllint.c.
Referenced by main().
|
static |
Definition at line 529 of file xmllint.c.
Referenced by LIBXML_ATTR_FORMAT(), xmlHTMLPrintFileContext(), and xmlHTMLPrintFileInfo().
|
static |
xmlHTMLPrintFileContext: @input: an xmlParserInputPtr input
Displays current context within the input content for error tracking
Definition at line 578 of file xmllint.c.
Referenced by LIBXML_ATTR_FORMAT().
|
static |
xmlHTMLPrintFileInfo: @input: an xmlParserInputPtr input
Displays the associated file and line information for the current input
Definition at line 554 of file xmllint.c.
Referenced by LIBXML_ATTR_FORMAT().
|
static |
Definition at line 246 of file xmllint.c.
Referenced by main().
|
static |
Definition at line 467 of file xmllint.c.
Referenced by basic_string< char, char_traits< char >, allocator< char > >::_M_assign(), vector< CTestInfo >::_M_fill_assign(), list< BookmarkNode >::_M_fill_assign(), TArrayAsVector< KeyMap >::AddAt(), adns__findtype(), basic_string< char, char_traits< char >, allocator< char > >::assign(), checkMiddle(), _Rb_tree< key_type, key_compare, value_type, _STLP_SELECT1ST(value_type, void), _MapTraits, _Alloc >::clear(), copy_char_to_wchar_sz(), DBG_cutIntersectionPoly(), DBG_edgeIntersectChainD(), DecompressBitmap(), directedLine::deleteChain(), TArrayAsVector< KeyMap >::Destroy(), TArrayAsVector< KeyMap >::Detach(), Window::dispatch_dialog_msg(), _Rb_tree< key_type, key_compare, value_type, _STLP_SELECT1ST(value_type, void), _MapTraits, _Alloc >::erase(), TArrayAsVector< KeyMap >::Find(), basic_string< char, char_traits< char >, allocator< char > >::find_first_of(), basic_string< char, char_traits< char >, allocator< char > >::find_last_not_of(), basic_string< char, char_traits< char >, allocator< char > >::find_last_of(), vertexArray::findDecreaseChainFromEnd(), findIncreaseChainFromBegin(), list< BookmarkNode >::front(), slist< value_type, _All >::front(), ResizeManager::HandleSize(), anonymous_namespace{mstscax.cpp}::init(), ATL::CComEnumImpl< Base, piid, T, Copy >::Init(), vector< CTestInfo >::insert(), _Rb_tree< key_type, key_compare, value_type, _STLP_SELECT1ST(value_type, void), _MapTraits, _Alloc >::insert_unique(), LIBXML_ATTR_FORMAT(), msi_dialog_edit_control(), msi_dialog_vcl_add_columns(), _Rb_tree< key_type, key_compare, value_type, _STLP_SELECT1ST(value_type, void), _MapTraits, _Alloc >::operator=(), list< BookmarkNode >::operator=(), parse_hex_literal(), Window::pretranslate_msg(), print_tokens(), TArrayAsVector< KeyMap >::Reallocate(), XMLStorage::XMLNode::Children::remove(), vector< CTestInfo >::rend(), deque< IncompleteClass >::rend(), list< BookmarkNode >::rend(), _Rb_tree< key_type, key_compare, value_type, _STLP_SELECT1ST(value_type, void), _MapTraits, _Alloc >::rend(), basic_string< char, char_traits< char >, allocator< char > >::rfind(), ShowDiff(), startTimer(), XMLStorage::XMLErrorList::str(), String_trim(), Desktops::SwitchToDesktop(), and Desktops::~Desktops().
|
static |
Definition at line 880 of file xmllint.c.
Referenced by attributeDeclDebug(), cdataBlockDebug(), cf2_builder_cubeTo(), cf2_builder_lineTo(), cf2_builder_moveTo(), cf2_glyphpath_init(), cf2_interpT2CharString(), charactersDebug(), commentDebug(), debugclient_GetEventCallbacks(), debugclient_GetEventCallbacksWide(), debugclient_GetInputCallbacks(), debugclient_GetOutputCallbacks(), debugclient_GetOutputCallbacksWide(), debugclient_SetEventCallbacks(), debugclient_SetEventContextCallbacks(), debugclient_SetInputCallbacks(), debugclient_SetOutputCallbacks(), debugclient_SetOutputCallbacksWide(), DECLARE_INTERFACE_(), elementDeclDebug(), endDocumentDebug(), endElementDebug(), endElementNsDebug(), entityDeclDebug(), EnumLanguageGroupLocalesA(), EnumLanguageGroupLocalesW(), externalSubsetDebug(), getEntityDebug(), getParameterEntityDebug(), hasExternalSubsetDebug(), hasInternalSubsetDebug(), ignorableWhitespaceDebug(), FxInterrupt::InitializeWorker(), internalSubsetDebug(), IntGetIcdData(), isStandaloneDebug(), JSPROXY_InternetInitializeAutoProxyDll(), notationDeclDebug(), processingInstructionDebug(), referenceDebug(), resolveEntityDebug(), setDocumentLocatorDebug(), startDocumentDebug(), startElementDebug(), startElementNsDebug(), test_initterm(), testSAX(), unparsedEntityDeclDebug(), and wpp_set_callbacks().
|
static |
Definition at line 110 of file xmllint.c.
Referenced by main(), and parseAndPrintFile().
|
static |
|
static |
xmlSAXHandlerPtr debugSAXHandler = &debugSAXHandlerStruct |
|
static |
|
static |
Definition at line 243 of file xmllint.c.
Referenced by main(), and xmllintExternalEntityLoader().
|
static |
Definition at line 171 of file xmllint.c.
Referenced by main(), and parseAndPrintFile().
|
static |
|
static |
Definition at line 161 of file xmllint.c.
Referenced by _test_current_encoding(), _test_form_encoding(), _test_form_put_encoding(), BDF_Face_Init(), blob_to_str(), cff_cmap_encoding_init(), cff_encoding_done(), cff_encoding_load(), cff_face_init(), create_writer_output(), CreateFontPackage(), CreateXmlReaderInputWithEncodingName(), CreateXmlWriterOutputWithEncodingName(), decode_inner_content(), dwarf2_parse_augmentation_ptr(), dwarf2_parse_base_type(), enc2num(), find_unicode_charmap(), fnIMultiLanguage_ConvertStringFromUnicode(), FT_Get_BDF_Charset_ID(), FT_Select_Charmap(), get_code_page(), get_encoding_name(), get_url_encoding(), utf_converter::get_wchar_t(), utf_converter::getDWord(), utf_converter::getWord(), id3_to_utf8(), init_content_encoding(), init_output_buffer(), main(), mpg123_encsize(), mpg123_fmt_support(), mpg123_format_support(), mpg123_getformat(), mpg123_getformat2(), mpg123_open_fixed(), mxwriter_get_encoding(), mxwriter_put_encoding(), next_text(), open_fixed_post(), open_fixed_pre(), XMLStorage::XMLReaderBase::parse(), parse_cie_details(), parse_encoding_name(), parseAndPrintFile(), pcf_get_encodings(), process_comment(), process_extra(), process_picture(), PROFILE_Save(), PROFILE_WriteLine(), PROFILE_WriteMarker(), SearchFile(), set_content_length(), sfnt_find_encoding(), store_id3_text(), t1_cmap_custom_init(), test_mxwriter_default_properties(), test_sip(), test_UrlMkGetSessionOption(), UrlMkGetSessionOption(), utf_converter::utf_converter(), WINTRUST_GetTimeFromCounterSigner(), WINTRUST_GetTimeFromSigner(), xmlCtxtReadDoc(), xmlCtxtReadFd(), xmlCtxtReadFile(), xmlCtxtReadIO(), xmlCtxtReadMemory(), xmlCtxtResetPush(), xmlCtxtUseOptionsInternal(), XMLStorage::XMLReaderBase::XmlDeclHandler(), xmlDoRead(), xmlParseEncodingDecl(), xmlParseTextDecl(), xmlReadDoc(), xmlReadFd(), xmlReadFile(), xmlReadIO(), xmlReadMemory(), xsltApplyStylesheetInternal(), xsltDocumentElem(), xsltSaveResultTo(), xsltSaveResultToFd(), xsltSaveResultToFile(), xsltSaveResultToFilename(), and xsltSaveResultToString().
|
static |
Definition at line 170 of file xmllint.c.
Referenced by main(), and parseAndPrintFile().
|
static |
Definition at line 149 of file xmllint.c.
Referenced by main(), and parseAndPrintFile().
|
static |
Definition at line 144 of file xmllint.c.
Referenced by list< BookmarkNode >::_M_fill_assign(), _STLP_STATIC_ASSERT(), add_entry(), add_reglocator_entry(), format_insert(), basic_string< char, char_traits< char >, allocator< char > >::insert(), LoadSystemIni(), main(), ME_InsertString(), list< BookmarkNode >::operator=(), deque< IncompleteClass >::operator=(), parseAndPrintFile(), PropertyStore_LookupValue(), psh_glyph_interpolate_normal_points(), basic_string< char, char_traits< char >, allocator< char > >::replace(), xmlDictExists(), xmlDictLookup(), xmlDictQLookup(), xmlHashAddEntry3(), xmlHashUpdateEntry3(), xsltApplySequenceConstructor(), xsltCopyTree(), xsltCopyTreeList(), xsltEvalTemplateString(), xsltShallowCopyElem(), and xsltShallowCopyNsNode().
|
static |
Definition at line 215 of file xmllint.c.
Referenced by main(), and xmllintExternalEntityLoader().
|
static |
Definition at line 111 of file xmllint.c.
Referenced by main(), myMallocFunc(), myReallocFunc(), myStrdupFunc(), and OOM().
|
static |
Definition at line 214 of file xmllint.c.
Referenced by parsePath(), and xmllintExternalEntityLoader().