1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-30 22:43:14 +03:00

applied patch from John Belmonte for anyURI. Daniel

* xmlschemastypes.c: applied patch from John Belmonte for anyURI.
Daniel
This commit is contained in:
Daniel Veillard
2004-03-14 12:20:15 +00:00
parent d3999c7ac6
commit 11c466abe4
2 changed files with 17 additions and 8 deletions

View File

@ -2001,15 +2001,20 @@ xmlSchemaValAtomicType(xmlSchemaTypePtr type, const xmlChar * value,
goto done;
}
case XML_SCHEMAS_ANYURI:{
xmlURIPtr uri;
uri = xmlParseURI((const char *) value);
if (uri == NULL)
goto return1;
if (val != NULL) {
TODO;
if (*value != 0) {
xmlURIPtr uri = xmlParseURI((const char *) value);
if (uri == NULL)
goto return1;
xmlFreeURI(uri);
}
if (val != NULL) {
v = xmlSchemaNewValue(XML_SCHEMAS_ANYURI);
if (v == NULL)
goto error;
v->value.str = xmlStrdup(value);
*val = v;
}
xmlFreeURI(uri);
goto return0;
}
case XML_SCHEMAS_HEXBINARY:{