* 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
| 7130 | * entities or to the external subset.) |
| 7131 | */ |
| 7132 | void |
| 7133 | xmlParseMarkupDecl(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: |
no test coverage detected