Relative Paths for MCML

You can use relative paths for HTTP resources. The first HTTP response URI in the document is used as the base URI, and then the relative path is appended to it.

The following example shows an example of using a relative path:

<Mcml xmlns="https://schemas.microsoft.com/2008/mcml">
  <UI Name="RelPath">
    <Content>
      <!-- Relative image path -->
      <Graphic Content="file://./Images/FourBoxGraphic.png"/>
    </Content>
  </UI>
</Mcml>

For more information about relative paths, see the WebRelativePaths.mcml sample in the Sample Explorer.

Sample Explorer

  • Web > Relative Paths.mcml
  • Web > Relative Paths (Another)

See Also