Lines Matching defs:elem
1672 xmlSchemaElementPtr elem;
1674 elem = (xmlSchemaElementPtr) item;
1678 elem->targetNamespace, elem->name));
1744 xmlNodePtr elem;
1747 elem = itemNode->parent;
1749 elem = itemNode;
1751 if (elem->ns != NULL) {
1753 xmlSchemaFormatQName(&str, elem->ns->href, elem->name));
1756 *buf = xmlStrcat(*buf, elem->name);
2194 xmlNodePtr elem = node->parent;
2197 if (elem->ns != NULL)
2199 elem->ns->href, elem->name));
2202 NULL, elem->name));
3923 xmlSchemaFreeElement(xmlSchemaElementPtr elem)
3925 if (elem == NULL)
3927 if (elem->annot != NULL)
3928 xmlSchemaFreeAnnot(elem->annot);
3929 if (elem->contModel != NULL)
3930 xmlRegFreeRegexp(elem->contModel);
3931 if (elem->defVal != NULL)
3932 xmlSchemaFreeValue(elem->defVal);
3933 xmlFree(elem);
4171 * @elem: an element
4177 xmlSchemaElementDump(xmlSchemaElementPtr elem, FILE * output,
4182 if (elem == NULL)
4187 if (elem->flags & XML_SCHEMAS_ELEM_GLOBAL)
4189 fprintf(output, ": '%s' ", elem->name);
4194 if ((elem->minOccurs != 1) || (elem->maxOccurs != 1)) {
4195 fprintf(output, " min %d ", elem->minOccurs);
4196 if (elem->maxOccurs >= UNBOUNDED)
4198 else if (elem->maxOccurs != 1)
4199 fprintf(output, "max: %d\n", elem->maxOccurs);
4207 if ((elem->flags & XML_SCHEMAS_ELEM_NILLABLE) ||
4208 (elem->flags & XML_SCHEMAS_ELEM_ABSTRACT) ||
4209 (elem->flags & XML_SCHEMAS_ELEM_FIXED) ||
4210 (elem->flags & XML_SCHEMAS_ELEM_DEFAULT)) {
4212 if (elem->flags & XML_SCHEMAS_ELEM_FIXED)
4214 if (elem->flags & XML_SCHEMAS_ELEM_DEFAULT)
4216 if (elem->flags & XML_SCHEMAS_ELEM_ABSTRACT)
4218 if (elem->flags & XML_SCHEMAS_ELEM_NILLABLE)
4225 if (elem->value != NULL)
4226 fprintf(output, " value: '%s'\n", elem->value);
4230 if (elem->namedType != NULL) {
4231 fprintf(output, " type: '%s' ", elem->namedType);
4232 if (elem->namedTypeNs != NULL)
4233 fprintf(output, "ns '%s'\n", elem->namedTypeNs);
4236 } else if (elem->subtypes != NULL) {
4240 xmlSchemaTypeDump(elem->subtypes, output);
4245 if (elem->substGroup != NULL) {
4246 fprintf(output, " substitutionGroup: '%s' ", elem->substGroup);
4247 if (elem->substGroupNs != NULL)
4248 fprintf(output, "ns '%s'\n", elem->substGroupNs);
4309 fprintf(output, "ELEM '%s'", xmlSchemaFormatQName(&str,
13196 * @elem: the schema element context
19909 xmlSchemaElementPtr elem =
24136 "elem info has not been cleared");
26586 "type has elem content but no content model");
26595 "validating elem, but elem content is already invalid");
27150 * if the elem is empty?
27326 * Register namespaces on the elem info.
27448 "elem pop mismatch");
28139 * @elem: an element node
28141 * Validate a branch of a tree, starting with the given @elem.
28147 xmlSchemaValidateOneElement(xmlSchemaValidCtxtPtr ctxt, xmlNodePtr elem)
28149 if ((ctxt == NULL) || (elem == NULL) || (elem->type != XML_ELEMENT_NODE))
28155 ctxt->doc = elem->doc;
28156 ctxt->node = elem;
28157 ctxt->validationRoot = elem;
28319 attributeDeclSplit(void *ctx, const xmlChar * elem,
28326 ctxt->user_sax->attributeDecl(ctxt->user_data, elem, name, type,