Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

XML File CP Configuration

Revision as of 12:37, 13 December 2007 by Dsanders.novell.com (Talk | contribs) (New page: == Configuration == The XML File Context Provider uses an XML file for configuration. The general format of this XML file is defined here: [http://wiki.eclipse.org/Configuration_XML Higgi...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Configuration

The XML File Context Provider uses an XML file for configuration. The general format of this XML file is defined here: Higgins XML Component Configuration. This configuration is expected to be part of an XRDS document as described here: Higgins Context Discovery Components.

XML File Context Provider Settings

In the configuration for the IDAS registry, there is a setting called "ContextIdsList", which is a list of contexts. The configuration for an XML file context is illustrated below:


<Setting Name="ContextIdsList" Type="htf:list">   <!-- The IDAS registry setting that defines the list of context IDs -->
   <Setting Name="urn:XMLFILE" Type="htf:map">
      <Setting Name="ContextId" Type="xsd:string">urn:XMLFILE</Setting>      <!-- This defines the Context ID.  The name must be a valid URI -->
      <Setting Name="ContextTypes" Type="htf:list">                          <!-- This is the list of context types this context supports -->
         <Setting Name="XMLFileContextType" Type="xsd:string">$context+xmlfile</Setting>
      </Setting>
      <Setting Name="ContextUris" Type="htf:list">
         <Setting Name="DefaultContextUri" Type="xsd:anyURI">urn:XMLFILE</Setting>
      </Setting>

      <!-- These are the settings that the XML File Context Provider cares about -->

      <Setting Name="XmlFileName" Type="xsd:string">/srv/www/htdocs/mydata.xml</Setting>   <!-- Name of XML file that holds the data -->
      <Setting Name="XmlFileAdminUser" Type="xsd:string">admin</Setting>                   <!-- Name of user to create if the file must be created -->
      <Setting Name="XmlFileAdminPassword" Type="xsd:string">adminpassword</Setting>       <!-- Password of user to create if the file is created -->
   </Setting>
</Setting>

See Also

Back to the top