void appendManifestSchemas(IPropertyTree &manifest, ILoadedDllEntry &loadedDll) { assertex(!finalized); Owned<IPropertyTreeIterator> iter = manifest.getElements("Resource[@type='RESULT_XSD']"); ForEach(*iter) appendSchemaResource(iter->query(), loadedDll); }
void appendManifestResultSchema(IPropertyTree &manifest, const char *resultname, ILoadedDllEntry &loadedDll) { assertex(!finalized); VStringBuffer xpath("Resource[@name='%s'][@type='RESULT_XSD']", resultname); IPropertyTree *res=manifest.queryPropTree(xpath.str()); if (res) appendSchemaResource(*res, loadedDll); }
void appendManifestSchemas(IPropertyTree &manifest, ILoadedDllEntry *dll) { if (flags & WWV_OMIT_SCHEMAS) return; assertex(!finalized); if (!dll) return; BoolHash uniqueResultNames; Owned<IPropertyTreeIterator> iter = manifest.getElements("Resource[@type='RESULT_XSD']"); ForEach(*iter) { IPropertyTree& res = iter->query(); const char* name = res.queryProp("@name"); if (name && *name) { bool* found = uniqueResultNames.getValue(name); if (found && *found) continue; uniqueResultNames.setValue(name, true); } appendSchemaResource(res, dll); } }