コード例 #1
0
 void appendManifestSchemas(IPropertyTree &manifest, ILoadedDllEntry &loadedDll)
 {
     assertex(!finalized);
     Owned<IPropertyTreeIterator> iter = manifest.getElements("Resource[@type='RESULT_XSD']");
     ForEach(*iter)
     appendSchemaResource(iter->query(), loadedDll);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
     }
 }