<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="../../make-menu.xsl" type="text/xsl"?><html>
   <head>
      <this-is section="configuration" page="config-interfaces" subpage="config-dotnet"/>
      <!--
           Generated at 2011-12-09T20:47:22.916Z--><title>Saxonica: XSLT and XQuery Processing: Configuration using the .NET API</title>
      <meta name="coverage" content="Worldwide"/>
      <meta name="copyright" content="Copyright Saxonica Ltd"/>
      <meta name="title"
            content="Saxonica: XSLT and XQuery Processing: Configuration using the .NET API"/>
      <meta name="robots" content="noindex,nofollow"/>
      <link rel="stylesheet" href="../../saxondocs.css" type="text/css"/>
   </head>
   <body class="main">
      <h1>Configuration using the .NET API</h1>
      <p>In Saxon's Saxon.API interface on .NET the root API object is the <code>Saxon.Api.Processor</code> object. This again
            is a wrapper around a <code>Configuration</code>. All the configuration properties are exposed via the <code>Processor</code>
            methods <code>getProperty(name)</code> and <code>setProperty(name, value)</code> which map
            directly to the methods<code>getConfigurationProperty(name)</code> and <code>setConfigurationProperty(name, value)</code>  on the underlying <code>Configuration</code>.</p>
      <p>The s9api <code>Processor</code> object also has a constructor <code>new Processor(stream)</code> which allows
            the underlying <code>Configuration</code> to be built from a supplied configuration file, which must have the format described in
            <a class="bodylink" href="../../configuration/configuration-file.xml">Configuration file</a>. Configuration files are
            available only in Saxon-PE and Saxon-EE.</p>
      <p>In many cases with the Saxon.Api interface it is more appropriate to set options at a finer level of granularity than the <code>Processor</code>.
            For example, options that affect XSLT stylesheet compilation can be set on the <code>XsltCompiler</code> object, and options that
            affect XQuery compilation on the <code>XQueryCompiler</code>.</p>
      <table width="100%">
         <tr>
            <td>
               <p align="right"><a class="nav" href="config-commandline.xml">Next</a></p>
            </td>
         </tr>
      </table>
   </body>
</html>