@@ -619,109 +619,109 @@ XML_GetErrorCode(XML_Parser parser)
619
619
}
620
620
621
621
static const XML_Char * const error_mapping [] = {
622
- "No error" ,
623
- "No memory" ,
624
- "Invalid document start" ,
625
- "Empty document" ,
626
- "Not well-formed (invalid token)" ,
627
- "Invalid document end" ,
628
- "Invalid hexadecimal character reference" ,
629
- "Invalid decimal character reference" ,
630
- "Invalid character reference" ,
631
- "Invalid character" ,
632
- "XML_ERR_CHARREF_AT_EOF" ,
633
- "XML_ERR_CHARREF_IN_PROLOG" ,
634
- "XML_ERR_CHARREF_IN_EPILOG" ,
635
- "XML_ERR_CHARREF_IN_DTD" ,
636
- "XML_ERR_ENTITYREF_AT_EOF" ,
637
- "XML_ERR_ENTITYREF_IN_PROLOG" ,
638
- "XML_ERR_ENTITYREF_IN_EPILOG" ,
639
- "XML_ERR_ENTITYREF_IN_DTD" ,
640
- "PEReference at end of document" ,
641
- "PEReference in prolog" ,
642
- "PEReference in epilog" ,
643
- "PEReference: forbidden within markup decl in internal subset" ,
644
- "XML_ERR_ENTITYREF_NO_NAME" ,
645
- "EntityRef: expecting ';'" ,
646
- "PEReference: no name" ,
647
- "PEReference: expecting ';'" ,
648
- "Undeclared entity error" ,
649
- "Undeclared entity warning" ,
650
- "Unparsed Entity" ,
651
- "XML_ERR_ENTITY_IS_EXTERNAL" ,
652
- "XML_ERR_ENTITY_IS_PARAMETER" ,
653
- "Unknown encoding" ,
654
- "Unsupported encoding" ,
655
- "String not started expecting ' or \"" ,
656
- "String not closed expecting \" or '" ,
657
- "Namespace declaration error" ,
658
- "EntityValue: \" or ' expected" ,
659
- "EntityValue: \" or ' expected" ,
660
- "< in attribute" ,
661
- "Attribute not started" ,
662
- "Attribute not finished" ,
663
- "Attribute without value" ,
664
- "Attribute redefined" ,
665
- "SystemLiteral \" or ' expected" ,
666
- "SystemLiteral \" or ' expected" ,
667
- /* "XML_ERR_COMMENT_NOT_STARTED", <= eliminated on purpose */
668
- "Comment not finished" ,
669
- "Processing Instruction not started" ,
670
- "Processing Instruction not finished" ,
671
- "NOTATION: Name expected here" ,
672
- "'>' required to close NOTATION declaration" ,
673
- "'(' required to start ATTLIST enumeration" ,
674
- "'(' required to start ATTLIST enumeration" ,
675
- "MixedContentDecl : '|' or ')*' expected" ,
676
- "XML_ERR_MIXED_NOT_FINISHED" ,
677
- "ELEMENT in DTD not started" ,
678
- "ELEMENT in DTD not finished" ,
679
- "XML declaration not started" ,
680
- "XML declaration not finished" ,
681
- "XML_ERR_CONDSEC_NOT_STARTED" ,
682
- "XML conditional section not closed" ,
683
- "Content error in the external subset" ,
684
- "DOCTYPE not finished" ,
685
- "Sequence ']]>' not allowed in content" ,
686
- "CDATA not finished" ,
687
- "Reserved XML Name" ,
688
- "Space required" ,
689
- "XML_ERR_SEPARATOR_REQUIRED" ,
690
- "NmToken expected in ATTLIST enumeration" ,
691
- "XML_ERR_NAME_REQUIRED" ,
692
- "MixedContentDecl : '#PCDATA' expected" ,
693
- "SYSTEM or PUBLIC, the URI is missing" ,
694
- "PUBLIC, the Public Identifier is missing" ,
695
- "< required" ,
696
- "> required" ,
697
- "</ required" ,
698
- "= required" ,
699
- "Mismatched tag" ,
700
- "Tag not finished" ,
701
- "standalone accepts only 'yes' or 'no'" ,
702
- "Invalid XML encoding name" ,
703
- "Comment must not contain '--' (double-hyphen)" ,
704
- "Invalid encoding" ,
705
- "external parsed entities cannot be standalone" ,
706
- "XML conditional section '[' expected" ,
707
- "Entity value required" ,
708
- "chunk is not well balanced" ,
709
- "extra content at the end of well balanced chunk" ,
710
- "XML_ERR_ENTITY_CHAR_ERROR" ,
711
- "PEReferences forbidden in internal subset" ,
712
- "Detected an entity reference loop" ,
713
- "XML_ERR_ENTITY_BOUNDARY" ,
714
- "Invalid URI" ,
715
- "Fragment not allowed" ,
716
- "XML_WAR_CATALOG_PI" ,
717
- "XML_ERR_NO_DTD" ,
718
- "conditional section INCLUDE or IGNORE keyword expected" , /* 95 */
719
- "Version in XML Declaration missing" , /* 96 */
720
- "XML_WAR_UNKNOWN_VERSION" , /* 97 */
721
- "XML_WAR_LANG_VALUE" , /* 98 */
722
- "XML_WAR_NS_URI" , /* 99 */
723
- "XML_WAR_NS_URI_RELATIVE" , /* 100 */
724
- "Missing encoding in text declaration" /* 101 */
622
+ ( const XML_Char * ) "No error" ,
623
+ ( const XML_Char * ) "No memory" ,
624
+ ( const XML_Char * ) "Invalid document start" ,
625
+ ( const XML_Char * ) "Empty document" ,
626
+ ( const XML_Char * ) "Not well-formed (invalid token)" ,
627
+ ( const XML_Char * ) "Invalid document end" ,
628
+ ( const XML_Char * ) "Invalid hexadecimal character reference" ,
629
+ ( const XML_Char * ) "Invalid decimal character reference" ,
630
+ ( const XML_Char * ) "Invalid character reference" ,
631
+ ( const XML_Char * ) "Invalid character" ,
632
+ ( const XML_Char * ) "XML_ERR_CHARREF_AT_EOF" ,
633
+ ( const XML_Char * ) "XML_ERR_CHARREF_IN_PROLOG" ,
634
+ ( const XML_Char * ) "XML_ERR_CHARREF_IN_EPILOG" ,
635
+ ( const XML_Char * ) "XML_ERR_CHARREF_IN_DTD" ,
636
+ ( const XML_Char * ) "XML_ERR_ENTITYREF_AT_EOF" ,
637
+ ( const XML_Char * ) "XML_ERR_ENTITYREF_IN_PROLOG" ,
638
+ ( const XML_Char * ) "XML_ERR_ENTITYREF_IN_EPILOG" ,
639
+ ( const XML_Char * ) "XML_ERR_ENTITYREF_IN_DTD" ,
640
+ ( const XML_Char * ) "PEReference at end of document" ,
641
+ ( const XML_Char * ) "PEReference in prolog" ,
642
+ ( const XML_Char * ) "PEReference in epilog" ,
643
+ ( const XML_Char * ) "PEReference: forbidden within markup decl in internal subset" ,
644
+ ( const XML_Char * ) "XML_ERR_ENTITYREF_NO_NAME" ,
645
+ ( const XML_Char * ) "EntityRef: expecting ';'" ,
646
+ ( const XML_Char * ) "PEReference: no name" ,
647
+ ( const XML_Char * ) "PEReference: expecting ';'" ,
648
+ ( const XML_Char * ) "Undeclared entity error" ,
649
+ ( const XML_Char * ) "Undeclared entity warning" ,
650
+ ( const XML_Char * ) "Unparsed Entity" ,
651
+ ( const XML_Char * ) "XML_ERR_ENTITY_IS_EXTERNAL" ,
652
+ ( const XML_Char * ) "XML_ERR_ENTITY_IS_PARAMETER" ,
653
+ ( const XML_Char * ) "Unknown encoding" ,
654
+ ( const XML_Char * ) "Unsupported encoding" ,
655
+ ( const XML_Char * ) "String not started expecting ' or \"" ,
656
+ ( const XML_Char * ) "String not closed expecting \" or '" ,
657
+ ( const XML_Char * ) "Namespace declaration error" ,
658
+ ( const XML_Char * ) "EntityValue: \" or ' expected" ,
659
+ ( const XML_Char * ) "EntityValue: \" or ' expected" ,
660
+ ( const XML_Char * ) "< in attribute" ,
661
+ ( const XML_Char * ) "Attribute not started" ,
662
+ ( const XML_Char * ) "Attribute not finished" ,
663
+ ( const XML_Char * ) "Attribute without value" ,
664
+ ( const XML_Char * ) "Attribute redefined" ,
665
+ ( const XML_Char * ) "SystemLiteral \" or ' expected" ,
666
+ ( const XML_Char * ) "SystemLiteral \" or ' expected" ,
667
+ /* (const XML_Char *) "XML_ERR_COMMENT_NOT_STARTED", <= eliminated on purpose */
668
+ ( const XML_Char * ) "Comment not finished" ,
669
+ ( const XML_Char * ) "Processing Instruction not started" ,
670
+ ( const XML_Char * ) "Processing Instruction not finished" ,
671
+ ( const XML_Char * ) "NOTATION: Name expected here" ,
672
+ ( const XML_Char * ) "'>' required to close NOTATION declaration" ,
673
+ ( const XML_Char * ) "'(' required to start ATTLIST enumeration" ,
674
+ ( const XML_Char * ) "'(' required to start ATTLIST enumeration" ,
675
+ ( const XML_Char * ) "MixedContentDecl : '|' or ')*' expected" ,
676
+ ( const XML_Char * ) "XML_ERR_MIXED_NOT_FINISHED" ,
677
+ ( const XML_Char * ) "ELEMENT in DTD not started" ,
678
+ ( const XML_Char * ) "ELEMENT in DTD not finished" ,
679
+ ( const XML_Char * ) "XML declaration not started" ,
680
+ ( const XML_Char * ) "XML declaration not finished" ,
681
+ ( const XML_Char * ) "XML_ERR_CONDSEC_NOT_STARTED" ,
682
+ ( const XML_Char * ) "XML conditional section not closed" ,
683
+ ( const XML_Char * ) "Content error in the external subset" ,
684
+ ( const XML_Char * ) "DOCTYPE not finished" ,
685
+ ( const XML_Char * ) "Sequence ']]>' not allowed in content" ,
686
+ ( const XML_Char * ) "CDATA not finished" ,
687
+ ( const XML_Char * ) "Reserved XML Name" ,
688
+ ( const XML_Char * ) "Space required" ,
689
+ ( const XML_Char * ) "XML_ERR_SEPARATOR_REQUIRED" ,
690
+ ( const XML_Char * ) "NmToken expected in ATTLIST enumeration" ,
691
+ ( const XML_Char * ) "XML_ERR_NAME_REQUIRED" ,
692
+ ( const XML_Char * ) "MixedContentDecl : '#PCDATA' expected" ,
693
+ ( const XML_Char * ) "SYSTEM or PUBLIC, the URI is missing" ,
694
+ ( const XML_Char * ) "PUBLIC, the Public Identifier is missing" ,
695
+ ( const XML_Char * ) "< required" ,
696
+ ( const XML_Char * ) "> required" ,
697
+ ( const XML_Char * ) "</ required" ,
698
+ ( const XML_Char * ) "= required" ,
699
+ ( const XML_Char * ) "Mismatched tag" ,
700
+ ( const XML_Char * ) "Tag not finished" ,
701
+ ( const XML_Char * ) "standalone accepts only 'yes' or 'no'" ,
702
+ ( const XML_Char * ) "Invalid XML encoding name" ,
703
+ ( const XML_Char * ) "Comment must not contain '--' (double-hyphen)" ,
704
+ ( const XML_Char * ) "Invalid encoding" ,
705
+ ( const XML_Char * ) "external parsed entities cannot be standalone" ,
706
+ ( const XML_Char * ) "XML conditional section '[' expected" ,
707
+ ( const XML_Char * ) "Entity value required" ,
708
+ ( const XML_Char * ) "chunk is not well balanced" ,
709
+ ( const XML_Char * ) "extra content at the end of well balanced chunk" ,
710
+ ( const XML_Char * ) "XML_ERR_ENTITY_CHAR_ERROR" ,
711
+ ( const XML_Char * ) "PEReferences forbidden in internal subset" ,
712
+ ( const XML_Char * ) "Detected an entity reference loop" ,
713
+ ( const XML_Char * ) "XML_ERR_ENTITY_BOUNDARY" ,
714
+ ( const XML_Char * ) "Invalid URI" ,
715
+ ( const XML_Char * ) "Fragment not allowed" ,
716
+ ( const XML_Char * ) "XML_WAR_CATALOG_PI" ,
717
+ ( const XML_Char * ) "XML_ERR_NO_DTD" ,
718
+ ( const XML_Char * ) "conditional section INCLUDE or IGNORE keyword expected" , /* 95 */
719
+ ( const XML_Char * ) "Version in XML Declaration missing" , /* 96 */
720
+ ( const XML_Char * ) "XML_WAR_UNKNOWN_VERSION" , /* 97 */
721
+ ( const XML_Char * ) "XML_WAR_LANG_VALUE" , /* 98 */
722
+ ( const XML_Char * ) "XML_WAR_NS_URI" , /* 99 */
723
+ ( const XML_Char * ) "XML_WAR_NS_URI_RELATIVE" , /* 100 */
724
+ ( const XML_Char * ) "Missing encoding in text declaration" /* 101 */
725
725
};
726
726
727
727
PHPAPI const XML_Char *
0 commit comments