Go Back   FlashFXP Forums > >

Frequently Asked Questions (FAQ) Answers to common questions, how to guides, and advanced configuration information.

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 03-25-2009, 05:29 PM   #1
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default XML Format for Site Import or Export

The xml structure is fairly simple

Code:
<?xml version="1.0" encoding="windows-1252"?>
<SITES VERSION="1.2">
  <SITE NAME="Server Name">
   ......
  </SITE>
</SITES>

The <SITES> section is made up of the following tags

Tags and Values
GROUP = If you want the site within a sub group you format it like a file path i.e. \my group\
PROTOCOL = "FTP" or "SFTP"
ADDRESS = the hostname or IP address of the server.
PORT = The port number in which the server is listening on.
USERNAME = your login name.
PASSWORD = your password.
ACCOUNT = your account name, this field is optional and only supported when the PROTOCOL is set to FTP. Most servers do not require this field.
REMOTEPATH = the remote folder to start in i.e. /home/
LOCALPATH = the local folder to start in i.e. c:\downloads\
PASSIVE = "DEFAULT", "ON", "OFF" (Only applies to FTP PROTOCOL)
SSL = "NONE", "IMPLICIT SSL", "AUTH SSL", "AUTH TLS" (Only applies to FTP PROTOCOL)
NOTES = any text notes you want to include with the site.

Here is an example of a couple sites, first one is FTP and second is SFTP
Code:
<?xml version="1.0" encoding="windows-1252"?>
<SITES VERSION="1.2">
  <SITE NAME="my ftp site">
     <GROUP>\name\</GROUP>
    <PROTOCOL>FTP</PROTOCOL>
    <ADDRESS>127.0.0.1</ADDRESS>
    <PORT>21</PORT>
    <USERNAME>user</USERNAME>
    <PASSWORD>pass</PASSWORD>
    <ACCOUNT>acct</ACCOUNT>
    <REMOTEPATH>/home/user/</REMOTEPATH>
    <LOCALPATH>C:\downloads\</LOCALPATH>
    <PASSIVE>DEFAULT</PASSIVE>
    <SSL>NONE</SSL>
    <NOTES>
      <![CDATA[This is my 
multiline
note]]>
    </NOTES>  </SITE>
  <SITE NAME="my sftp site">
    <PROTOCOL>SFTP</PROTOCOL>
    <ADDRESS>127.0.0.1</ADDRESS>
    <PORT>22</PORT>
    <USERNAME>user</USERNAME>
    <PASSWORD>pass</PASSWORD>
    <REMOTEPATH>/home/user/</REMOTEPATH>
    <LOCALPATH>C:\downloads\</LOCALPATH>
  </SITE>
</SITES>

Last edited by bigstar; 03-25-2009 at 05:38 PM.
bigstar is offline   Reply With Quote
 

Tags
cdownloads, ftp, group, protocol, sftp

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:50 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)