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

@ -1,3 +1,7 @@
Sun Mar 14 13:19:20 CET 2004 Daniel Veillard <daniel@veillard.com>
* xmlschemastypes.c: applied patch from John Belmonte for anyURI.
Wed Mar 10 17:22:48 CET 2004 Daniel Veillard <daniel@veillard.com> Wed Mar 10 17:22:48 CET 2004 Daniel Veillard <daniel@veillard.com>
* parser.c: fix bug reported by Holger Rauch * parser.c: fix bug reported by Holger Rauch

View File

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