version 1.4, 1998/05/15 03:12:24
|
version 1.5, 1998/05/22 21:10:42
|
Line 183 rdfDescription rdfAddDescription(rdfSche
|
Line 183 rdfDescription rdfAddDescription(rdfSche
|
return((rdfDescription) tree); |
return((rdfDescription) tree); |
} |
} |
|
|
|
/* |
|
* Read the attributes of a Description node. |
|
*/ |
|
char *rdfGetDescriptionId(rdfSchema schema, rdfDescription desc) { |
|
char *res; |
|
|
|
res = (char *) xmlGetProp(desc, "ID"); |
|
return(res); |
|
} |
|
|
|
char *rdfGetDescriptionHref(rdfSchema schema, rdfDescription desc) { |
|
char *res; |
|
rdfNamespace dtd; |
|
char *buf; |
|
|
|
dtd = rdfGetRdfNamespace(schema); |
|
buf = (char *) malloc(strlen(dtd->AS) + 10); |
|
sprintf(buf, "%s:HREF", dtd->AS); |
|
res = (char *) xmlGetProp(desc, buf); |
|
free(buf); |
|
return(res); |
|
} |
|
|
/** |
/** |
** Routines to read/write final values. |
** Routines to read/write final values. |
**/ |
**/ |