# <Source>

The Source element specifies the URLs, file paths, and the default text encoding of the source content used to create the document. In addition, the Source element specifies the user name and password for accessing web sites that utilize the HTTP Basic Authentication mechanism.

## Full element example

        <Source>
          <Sources>
            <Path>http://www.iSilo.com</Path>
            <Path>http://www.iSiloX.com</Path>
          </Sources>
          <UserName>Joe</UserName>
          <Password>Joe's Password</Password>
          <CharSet>iso-8859-1</CharSet>
        </Source>

## Sub-element summary

Tag | Type | Default | Description
--- | --- | --- | ---
`<Sources>` | multi-string | n/a | Source URLs and file paths
`<UserName>` | string | n/a | Authentication user name
`<Password>` | string | n/a | Authentication password
`<CharSet>` | string | n/a | Default source file encoding. This option requires version 4.0 or later of iSiloX and iSiloXC.

## Sub-element descriptions

### <Sources>

Description
Within the `<Sources>` start tag and the `</Sources>` end tag, specify one or more Path elements. Each Path element consists of the source URL or file path string enclosed within the `<Path>` start tag and the `</Path>` end tag.
Examples
This example specifies the iSilo.com web site as the source content.

      <Sources>
        <Path>http://www.iSilo.com</Path>
      </Sources>

Under Windows®, this example specifies two files as the source content.

      <Sources>
        <Path>c:\Docs\Intro.htm</Path>
        <Path>c:\Docs\Story.htm</Path>
      </Sources>

### <UserName>

Description
If the source web site requires a user name and password, use this tag to specify the user name.

Note that iSiloX and iSiloXC only support the HTTP Basic Authentication mechanism. You can usually tell that a web site uses this mechanism if when you access the site, your browser pops up a dialog asking for your user name and password. You can usually tell that a web site does not use this mechanism if when you access the site, you get a page with a form for you to enter your user name and password.
Examples
This example specifies that the user name for authentication is Joe.

      <UserName>Joe</UserName>

### <Password>

Description
If the source web site requires a user name and password, use this tag to specify the password.

Also see the notes for the `<UserName>` tag.
Examples
This example specifies that the password for authentication is appleTree12.

      <Password>appleTree12</Password>

### <CharSet>

Description
The value of this tag specifies the default text encoding. Any source file that does not specify its text encoding is assumed to have the default text encoding.

Also see the notes for the `<CharSet>` tag under the Document element.
Examples
This example specifies that the default text encoding is the GB2312 simplified Chinese text encoding.

      <CharSet>GB2312</CharSet>

©1999-2017 DC & Co. All rights reserved.