Пример #1
0
static void readSBOLCompoundObject(SBOLCompoundObject *obj, xmlNode *node) {
	xmlChar *path;
	xmlChar *content;

	// add displayID
	path = BAD_CAST "./" NSPREFIX_SBOL ":" NODENAME_DISPLAYID;
	if ((content = getContentsOfNodeMatchingXPath(node, path))) {
		setSBOLCompoundObjectDisplayID(obj, (char *)content);
		xmlFree(content);
	}

	// add name
	path = BAD_CAST "./" NSPREFIX_SBOL ":" NODENAME_NAME;
	if ((content = getContentsOfNodeMatchingXPath(node, path))) {
		setSBOLCompoundObjectName(obj, (char *)content);
		xmlFree(content);
	}

	// add description
	path = BAD_CAST "./" NSPREFIX_SBOL ":" NODENAME_DESCRIPTION;
	if ((content = getContentsOfNodeMatchingXPath(node, path))) {
		setSBOLCompoundObjectDescription(obj, (char *)content);
		xmlFree(content);
	}
}
Пример #2
0
void setCollectionDescription(Collection* col, const char* descr) {
	if (col)
		setSBOLCompoundObjectDescription(col->base, descr);
}