MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlParseMarkupDecl

Function xmlParseMarkupDecl

ThirdParty/libxml2/vtklibxml2/parser.c:7132–7164  ·  view source on GitHub ↗

* xmlParseMarkupDecl: * @ctxt: an XML parser context * * DEPRECATED: Internal function, don't use. * * Parse markup declarations. Always consumes '<!' or '<?'. * * [29] markupdecl ::= elementdecl | AttlistDecl | EntityDecl | * NotationDecl | PI | Comment * * [ VC: Proper Declaration/PE Nesting ] * Parameter-entity replacement text must be properly nested with * mar

Source from the content-addressed store, hash-verified

7130 * entities or to the external subset.)
7131 */
7132void
7133xmlParseMarkupDecl(xmlParserCtxtPtr ctxt) {
7134 GROW;
7135 if (CUR == '<') {
7136 if (NXT(1) == '!') {
7137 switch (NXT(2)) {
7138 case 'E':
7139 if (NXT(3) == 'L')
7140 xmlParseElementDecl(ctxt);
7141 else if (NXT(3) == 'N')
7142 xmlParseEntityDecl(ctxt);
7143 else
7144 SKIP(2);
7145 break;
7146 case 'A':
7147 xmlParseAttributeListDecl(ctxt);
7148 break;
7149 case 'N':
7150 xmlParseNotationDecl(ctxt);
7151 break;
7152 case '-':
7153 xmlParseComment(ctxt);
7154 break;
7155 default:
7156 /* there is an error but it will be detected later */
7157 SKIP(2);
7158 break;
7159 }
7160 } else if (NXT(1) == '?') {
7161 xmlParsePI(ctxt);
7162 }
7163 }
7164}
7165
7166/**
7167 * xmlParseTextDecl:

Callers 3

xmlParseExternalSubsetFunction · 0.85
xmlParseInternalSubsetFunction · 0.85

Calls 6

xmlParseElementDeclFunction · 0.85
xmlParseEntityDeclFunction · 0.85
xmlParseNotationDeclFunction · 0.85
xmlParseCommentFunction · 0.85
xmlParsePIFunction · 0.85

Tested by

no test coverage detected