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

Function xmlParseElementContentDecl

ThirdParty/libxml2/vtklibxml2/parser.c:6836–6864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6834 */
6835
6836int
6837xmlParseElementContentDecl(xmlParserCtxtPtr ctxt, const xmlChar *name,
6838 xmlElementContentPtr *result) {
6839
6840 xmlElementContentPtr tree = NULL;
6841 int inputid = ctxt->input->id;
6842 int res;
6843
6844 *result = NULL;
6845
6846 if (RAW != '(') {
6847 xmlFatalErrMsgStr(ctxt, XML_ERR_ELEMCONTENT_NOT_STARTED,
6848 "xmlParseElementContentDecl : %s '(' expected\n", name);
6849 return(-1);
6850 }
6851 NEXT;
6852 GROW;
6853 SKIP_BLANKS_PE;
6854 if (CMP7(CUR_PTR, '#', 'P', 'C', 'D', 'A', 'T', 'A')) {
6855 tree = xmlParseElementMixedContentDecl(ctxt, inputid);
6856 res = XML_ELEMENT_TYPE_MIXED;
6857 } else {
6858 tree = xmlParseElementChildrenContentDeclPriv(ctxt, inputid, 1);
6859 res = XML_ELEMENT_TYPE_ELEMENT;
6860 }
6861 SKIP_BLANKS_PE;
6862 *result = tree;
6863 return(res);
6864}
6865
6866/**
6867 * xmlParseElementDecl:

Callers 1

xmlParseElementDeclFunction · 0.85

Tested by

no test coverage detected