Lines Matching defs:in

19  * production in the XML specification. A few productions defining the
20 * different ranges of character are actually implanted either in
22 * The DOM tree build is realized from the default SAX callbacks in
24 * The routines doing the validation checks are in valid.c and called either
203 errmsg = "PEReference in prolog\n";
206 errmsg = "PEReference in epilog\n";
221 errmsg = "PEReferences forbidden in internal subset\n";
230 errmsg = "Unescaped '<' not allowed in attributes values\n";
239 errmsg = "Sequence ']]>' not allowed in content\n";
272 errmsg = "NmToken expected in ATTLIST enumeration\n";
291 "PEReference: forbidden within markup decl in internal subset\n";
300 errmsg = "Content error in the external subset\n";
1067 * Returns -1 in case of error, -2 if the namespace should be discarded
1068 * and the index in the stack otherwise.
1077 /* in scope */
1181 * Returns 0 in case of error, the index in the stack otherwise
1236 * Returns 0 in case of error, the index in the stack otherwise
1257 "Excessive depth in document: change xmlParserMaxDepth = %d\n",
1302 * Returns -1 in case of error, the index in the stack otherwise
1372 * Returns -1 in case of error, the index in the stack otherwise
1465 * RAW same as CUR but in the input buffer, bypass any token
1476 * in UTF-8 mode. It also pop-up unfinished entities on the fly.
1586 * skip all blanks character found at that point in the input streams.
1587 * It pops up finished entities in the process if allowable at that point.
1603 * if we are in the document content, go really fast
1655 * Returns the current xmlChar in the parser context
1707 * Returns the value parsed (as an int), 0 in case of error
1799 * @str: a pointer to an index in the string
1811 * Returns the value parsed (as an int), 0 in case of error, str will be
1959 * Parameter-entity references may only appear in the DTD.
1962 * A PEReference may have been detected in the current input stream
1966 * - Included in literal in entity values
2006 * NOTE: in the case of entity values, we don't do the
2015 * [WFC: Well-Formedness Constraint: PEs in Internal Subset]
2019 * In that case this is handled in xmlParseMarkupDecl
2099 * the amount of data in the buffer.
2371 * Look if the element is mixed content in the DTD if available
2604 const xmlChar *in;
2613 in = ctxt->input->cur;
2614 if (((*in >= 0x61) && (*in <= 0x7A)) ||
2615 ((*in >= 0x41) && (*in <= 0x5A)) ||
2616 (*in == '_') || (*in == ':')) {
2617 in++;
2618 while (((*in >= 0x61) && (*in <= 0x7A)) ||
2619 ((*in >= 0x41) && (*in <= 0x5A)) ||
2620 ((*in >= 0x30) && (*in <= 0x39)) ||
2621 (*in == '_') || (*in == '-') ||
2622 (*in == ':') || (*in == '.'))
2623 in++;
2624 if ((*in > 0) && (*in < 0x80)) {
2625 count = in - ctxt->input->cur;
2627 ctxt->input->cur = in;
2652 register const xmlChar *in;
2657 in = ctxt->input->cur;
2658 while (*in != 0 && *in == *cmp) {
2659 ++in;
2663 if (*cmp == 0 && (*in == '>' || IS_BLANK_CH (*in))) {
2665 ctxt->input->cur = in;
2728 * is updated to the current location in the string.
2918 * The content of the entity definition is copied in a buffer.
2927 * NOTE: 4.4.5 Included in Literal
2928 * When a parameter entity reference appears in a literal entity
2929 * value, ... a single or double quote character in the replacement
2967 * Raise problem w.r.t. '&' and '%' being used in non-entities
2968 * reference constructs. Note Charref will be handled in
3006 * When a general entity reference appears in the EntityValue in
3083 * The reparsing will be done in xmlStringGetNodeList()
3084 * called by the attribute() function in SAX.c
3220 * will be handled later in xmlStringGetNodeList
3411 * used for the test in the inner loop of the char data testing
3458 * reference when it appears in the string "]]>" in content, when that
3466 const xmlChar *in;
3479 in = ctxt->input->cur;
3482 while (*in == 0x20) in++;
3483 if (*in == 0xA) {
3486 in++;
3487 } while (*in == 0xA);
3490 if (*in == '<') {
3491 nbchar = in - ctxt->input->cur;
3494 ctxt->input->cur = in;
3517 while (test_char_data[*in]) {
3518 in++;
3522 if (*in == 0xA) {
3525 in++;
3526 } while (*in == 0xA);
3529 if (*in == ']') {
3530 if ((in[1] == ']') && (in[2] == '>')) {
3532 ctxt->input->cur = in;
3535 in++;
3539 nbchar = in - ctxt->input->cur;
3546 ctxt->input->cur = in;
3565 ctxt->input->cur = in;
3566 if (*in == 0xD) {
3567 in++;
3568 if (*in == 0xA) {
3569 ctxt->input->cur = in;
3570 in++;
3574 in--;
3576 if (*in == '<') {
3579 if (*in == '&') {
3584 in = ctxt->input->cur;
3585 } while (((*in >= 0x20) && (*in <= 0x7F)) || (*in == 0x09));
3614 (IS_CHAR(cur))) /* test also done in xmlCurrentChar() */ {
3690 * Returns the function returns SystemLiteral and in the second
3760 * @len: number of bytes filles in the buffer
3766 * This is the slow routine in case the accelerator for ascii didn't work
3842 "Comment doesn't start and stop in the same entity\n");
3872 const xmlChar *in;
3891 in = ctxt->input->cur;
3893 if (*in == 0xA) {
3896 in++;
3897 } while (*in == 0xA);
3901 while (((*in > '-') && (*in <= 0x7F)) ||
3902 ((*in >= 0x20) && (*in < '-')) ||
3903 (*in == 0x09)) {
3904 in++;
3908 if (*in == 0xA) {
3911 in++;
3912 } while (*in == 0xA);
3915 nbchar = in - ctxt->input->cur;
3923 if ((*in == '-') && (in[1] == '-'))
3952 ctxt->input->cur = in;
3953 if (*in == 0xA) {
3954 in++;
3957 if (*in == 0xD) {
3958 in++;
3959 if (*in == 0xA) {
3960 ctxt->input->cur = in;
3961 in++;
3965 in--;
3969 in = ctxt->input->cur;
3970 if (*in == '-') {
3971 if (in[1] == '-') {
3972 if (in[2] == '>') {
3993 in++;
3996 in++;
4000 } while (((*in >= 0x20) && (*in <= 0x7F)) || (*in == 0x09));
4059 * Occurs only if allowed by the user and if happening in the Misc
4061 * This will add the given catalog to the parsing context in order
4062 * to be used if there is a resolution need further down in the document
4151 "PI declaration doesn't start and stop in the same entity\n");
4214 "PI declaration doesn't start and stop in the same entity\n");
4300 "Notation declaration doesn't start and stop in the same entity\n");
4346 /* GROW; done in the caller */
4438 * For expat compatibility in SAX mode.
4504 * For expat compatibility in SAX mode.
4531 "Entity declaration doesn't start and stop in the same entity\n");
4578 * attribute must be specified for all elements of the type in the
4589 * [ WFC: No < in Attribute Values ]
4590 * handled in xmlParseAttValue()
4642 * in the declaration; all notation names in the declaration must be declared.
4663 "Name expected in NOTATION declaration\n");
4694 * Values of this type must match one of the Nmtoken tokens in
4784 * Validity constraints for attribute values syntax are checked in
4789 * appear more than once in an XML document as a value of this type;
4801 * of an ID attribute on some element in the XML document; i.e. IDREF
4807 * name of an unparsed entity declared in the DTD.
4941 "in xmlParseAttributeListDecl\n");
4970 "Attribute list declaration doesn't start and stop in the same entity\n");
4983 * The leading '(' and spaces have been skipped in xmlParseElementContentDecl
4991 * The same name must not appear more than once in a single
5009 "Element content declaration doesn't start and stop in the same entity\n",
5065 "Element content declaration doesn't start and stop in the same entity\n",
5087 * The leading '(' and spaces have been skipped in xmlParseElementContentDecl
5101 * opening or closing parentheses in a choice, seq, or Mixed
5102 * construct is contained in the replacement text for a parameter
5103 * entity, both must be contained in the same replacement text. For
5104 * interoperability, if a parameter-entity reference appears in a
5290 "Element content declaration doesn't start and stop in the same entity\n",
5368 * the cases EMPTY and ANY are handled directly in xmlParseElementDecl
5416 * Returns the type of the element, or -1 in case of error
5424 /* GROW; done in the caller */
5464 * [ WFC: PEs in Internal Subset ] error handling.
5469 "PEReference: forbidden within markup decl in internal subset\n");
5493 "Element declaration doesn't start and stop in the same entity\n");
5609 * But disable SAX event generating DTD building in the meantime
5669 * contained in the replacement text for a parameter-entity reference,
5670 * both must be contained in the same replacement text.
5672 * [ WFC: PEs in Internal Subset ]
5675 * (This does not apply to references that occur in external parameter
5716 * by PE References in the internal subset.
5785 "Missing encoding in text declaration\n");
5875 * parse and handle entity references in content, depending on the SAX
5876 * interface, this may end-up in a call to character() if this is a
5917 * Just encode the value in UTF-8
5958 * bracket (<) may appear in their literal form only
5962 * IMHO 2.4 and 4.3.2 are directly in contradiction.
6032 * Prune it directly in the generated document
6094 * and, if it's NULL, we copy in whatever was in the entity.
6132 * node cases in the reader tests
6204 * characters() in SAX.c
6211 * Probably running in SAX mode
6260 * with "standalone='yes'", the Name given in the entity reference
6261 * must match that in an entity declaration, except that well-formed
6265 * must precede any reference to it which appears in a default value in an
6266 * attribute-list declaration. Note that if entities are declared in the
6267 * external subset or in external parameter entities, a non-validating
6312 * Name given in the entity reference must match that in an
6319 * precede any reference to it which appears in a default
6320 * value in an attribute-list declaration. Note that if
6321 * entities are declared in the external subset or in
6367 * [ WFC: No < in Attribute Values ]
6369 * indirectly in an attribute value (other than "&lt;") must
6378 "'<' in entity '%s' is not allowed in attributes values\n", name);
6415 * @str: a pointer to an index in the string
6425 * with "standalone='yes'", the Name given in the entity reference
6426 * must match that in an entity declaration, except that well-formed
6430 * must precede any reference to it which appears in a default value in an
6431 * attribute-list declaration. Note that if entities are declared in the
6432 * external subset or in external parameter entities, a non-validating
6441 * is updated to the current location in the string.
6482 * Name given in the entity reference must match that in an
6489 * precede any reference to it which appears in a default
6490 * value in an attribute-list declaration. Note that if
6491 * entities are declared in the external subset or in
6533 * [ WFC: No < in Attribute Values ]
6535 * indirectly in an attribute value (other than "&lt;") must
6544 "'<' in entity '%s' is not allowed in attributes values\n",
6607 * Parameter-entity references may only appear in the DTD.
6660 * Internal checking in case the entity quest barfed
6706 * @str: a pointer to an index in the string
6728 * Parameter-entity references may only appear in the DTD.
6789 * Internal checking in case the entity quest barfed
6819 * The Name in the document type declaration must match the element
6870 * they are handled separately in xmlParseInternalSubset()
6922 "xmlParseInternalSubset: error detected in Markup declaration\n");
6955 * [ WFC: No < in Attribute Values ]
6956 * The replacement text of any entity referred to directly or indirectly in
6972 * Returns the attribute name, and the value in *value.
7007 * since this was deprecated in XML second edition
7046 * No attribute name may appear more than once in the same start-tag or
7052 * No attribute name may appear more than once in the same start-tag or
7102 * No attribute name may appear more than once in the same
7233 * The Name in an element's end-tag must match the element type in the
7354 const xmlChar *in;
7361 in = ctxt->input->cur;
7362 if (((*in >= 0x61) && (*in <= 0x7A)) ||
7363 ((*in >= 0x41) && (*in <= 0x5A)) ||
7364 (*in == '_')) {
7365 in++;
7366 while (((*in >= 0x61) && (*in <= 0x7A)) ||
7367 ((*in >= 0x41) && (*in <= 0x5A)) ||
7368 ((*in >= 0x30) && (*in <= 0x39)) ||
7369 (*in == '_') || (*in == '-') ||
7370 (*in == '.'))
7371 in++;
7372 if ((*in > 0) && (*in < 0x80)) {
7373 count = in - ctxt->input->cur;
7375 ctxt->input->cur = in;
7478 const xmlChar *in;
7485 in = ctxt->input->cur;
7488 while (*in != 0 && *in == *cmp) {
7489 ++in;
7492 if ((*cmp == 0) && (*in == ':')) {
7493 in++;
7495 while (*in != 0 && *in == *cmp) {
7496 ++in;
7499 if (*cmp == 0 && (*in == '>' || IS_BLANK_CH (*in))) {
7501 ctxt->input->cur = in;
7553 const xmlChar *in = NULL, *start, *end, *last;
7557 in = (xmlChar *) CUR_PTR;
7558 if (*in != '"' && *in != '\'') {
7565 * try to handle in this routine the most common case where no
7569 limit = *in++;
7571 start = in;
7572 if (in >= end) {
7578 in = in + delta;
7586 while ((in < end) && (*in != limit) &&
7587 ((*in == 0x20) || (*in == 0x9) ||
7588 (*in == 0xA) || (*in == 0xD))) {
7589 in++;
7590 start = in;
7591 if (in >= end) {
7597 in = in + delta;
7602 while ((in < end) && (*in != limit) && (*in >= 0x20) &&
7603 (*in <= 0x7f) && (*in != '&') && (*in != '<')) {
7604 if ((*in++ == 0x20) && (*in == 0x20)) break;
7605 if (in >= end) {
7611 in = in + delta;
7616 last = in;
7621 while ((in < end) && (*in != limit) &&
7622 ((*in == 0x20) || (*in == 0x9) ||
7623 (*in == 0xA) || (*in == 0xD))) {
7624 in++;
7625 if (in >= end) {
7631 in = in + delta;
7637 if (*in != limit) goto need_complex;
7639 while ((in < end) && (*in != limit) && (*in >= 0x20) &&
7640 (*in <= 0x7f) && (*in != '&') && (*in != '<')) {
7641 in++;
7642 if (in >= end) {
7648 in = in + delta;
7653 last = in;
7654 if (*in != limit) goto need_complex;
7656 in++;
7664 CUR_PTR = in;
7682 * parse an attribute in the new SAX2 framework.
7684 * Returns the attribute name, and the value in *value, .
7735 * since this was deprecated in XML second edition
7781 * No attribute name may appear more than once in the same start-tag or
7787 * No attribute name may appear more than once in the same start-tag or
8091 * No attribute name may appear more than once in the same
8093 * As extended by the Namespace in XML REC.
8103 "Namespaced Attribute %s in '%s' redefined\n",
8214 * The Name in an element's end-tag must match the element type in the
8414 "detected an error in element content\n");
8430 * The Name in an element's end-tag must match the element type in the
8476 * The Name in the document type declaration must match the element
8548 "Premature end of data in tag %s line %d\n",
8840 * attributes apply appear in the document without specifications
8843 * to those entities appear in the document, or
8845 * attribute appears in the document with a value which will change
9036 * Returns 0, -1 in case of error. the parser context is augmented
9086 * Check for the XMLDecl in the Prolog.
9200 * Returns 0, -1 in case of error. the parser context is augmented
9246 * Check for the XMLDecl in the Prolog.
9309 * (first) is available in the input stream.
9321 xmlParserInputPtr in;
9324 in = ctxt->input;
9325 if (in == NULL) return(-1);
9326 base = in->cur - in->base;
9330 if (in->buf == NULL) {
9331 buf = in->base;
9332 len = in->length;
9334 buf = in->buf->buffer->content;
9335 len = in->buf->buffer->use;
9363 return(base - (in->cur - in->base));
9387 * Lookup the last < and > in the current chunk
9441 * @len: length of the block in bytes
9602 * remainng chars to avoid them stalling in the non-converted
9761 /* > can be found unescaped in attribute values */
9790 * The Name in the document type declaration must match
9910 * - tries to homogenize the differences in SAX
9937 "detected an error in element content\n");
9948 /* > can be found unescaped in attribute values */
10213 * Internal subset ends up with "']' S? '>'" in an unescaped
10214 * section and not in a ']]>' sequence which are conditional
10215 * sections (whoever argued to keep that crap in XML deserve
10216 * a place in hell !).
10430 * @size: the size in byte of the chunk
10475 xmlParserInputBufferPtr in = ctxt->input->buf;
10476 if ((in->encoder != NULL) && (in->buffer != NULL) &&
10477 (in->raw != NULL)) {
10480 nbchars = xmlCharEncInFunc(in->encoder, in->buffer, in->raw);
10539 * @size: number of chars in the array
10542 * Create a parser context for using the XML parser in push mode.
10545 * don't need to be fed in again through xmlParseChunk.
10761 * Returns the resulting xmlDtdPtr or NULL in case of error.
10879 * Returns the resulting xmlDtdPtr or NULL in case of error.
10993 * Returns the resulting xmlDtdPtr or NULL in case of error.
11021 * Returns 0 if the entity is well formed, -1 in case of args problem and
11206 * Returns 0 if the entity is well formed, -1 in case of args problem and
11394 * Returns 0 if the entity is well formed, -1 in case of args problem and
11411 * @string: the input string in UTF8 or ISO-Latin (zero terminated)
11417 * the content production in the XML grammar:
11421 * Returns 0 if the chunk is well balanced, -1 in case of args problem and
11436 * @string: the input string in UTF8 or ISO-Latin (zero terminated)
11444 * the content production in the XML grammar:
11534 * ID/IDREF registration will be done in xmlValidateElement below
11606 * @datalen: the input string length in bytes
11614 * the content production in the XML grammar:
11667 * node position in the tree
11735 * ID/IDREF registration will be done in xmlValidateElement below
11813 * @string: the input string in UTF8 or ISO-Latin (zero terminated)
11821 * the content production in the XML grammar:
11825 * Returns 0 if the chunk is well balanced, -1 in case of args problem and
12161 * @recovery: work in recovery mode, i.e. tries to read no Well Formed
12170 * User data (void *) is stored within the parser context in the
12171 * context's _private member, so it is available nearly everywhere in libxml
12233 * @recovery: work in recovery mode, i.e. tries to read no Well Formed
12254 * parse an XML in-memory document and build a tree.
12342 * Returns 0 in case of success or a error number otherwise
12395 * Create a parser context for an XML in-memory document.
12444 * @recovery: work in recovery mode, i.e. tries to read no Well Formed
12448 * parse an XML in-memory block and use the given SAX function block
12452 * User data (void *) is stored within the parser context in the
12453 * context's _private member, so it is available nearly everywhere in libxml
12498 * @recovery: work in recovery mode, i.e. tries to read not Well Formed
12501 * parse an XML in-memory block and use the given SAX function block
12518 * parse an XML in-memory block and build a tree.
12532 * parse an XML in-memory block and build a tree.
12546 * @buffer: an in-memory XML document input
12547 * @size: the length of the XML document in bytes
12550 * parse an XML in-memory buffer and call the given SAX handler routines.
12552 * Returns 0 in case of success or a error number otherwise
12594 * Creates a parser context for an XML in-memory document.
12613 * @recovery: work in recovery mode, i.e. tries to read no Well Formed
12616 * parse an XML in-memory document and build a tree.
12659 * parse an XML in-memory document and build a tree.
12728 * This is not reentrant. Call once before processing in case of
12729 * use in multithreaded programs.
12805 * Free a string if it is not owned by the "dict" dictionnary in the
12909 * @size: number of chars in the array
12915 * Returns 0 in case of success and 1 in case of error
13018 * Returns 0 in case of success, the set of unknown or unimplemented options
13019 * in case of error.
13164 * parse an XML in-memory document and build a tree.
13211 * parse an XML in-memory document and build a tree.
13319 * parse an XML in-memory document and build a tree.
13387 * parse an XML in-memory document and build a tree.