2
' FCKeditor - The text editor for Internet - http://www.fckeditor.net
3
' Copyright (C) 2003-2010 Frederico Caldeira Knabben
7
' Licensed under the terms of any of the following licenses at your
10
' - GNU General Public License Version 2 or later (the "GPL")
11
' http://www.gnu.org/licenses/gpl.html
13
' - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
14
' http://www.gnu.org/licenses/lgpl.html
16
' - Mozilla Public License Version 1.1 or later (the "MPL")
17
' http://www.mozilla.org/MPL/MPL-1.1.html
21
' This file include the functions that create the base XML output.
26
' Cleans the response buffer.
29
' Prevent the browser from caching the result.
30
Response.CacheControl = "no-cache"
32
' Set the response format.
34
' The CodePage property isn't supported in Windows 2000. #2604
35
Response.CodePage = 65001
38
Response.CharSet = "UTF-8"
39
Response.ContentType = "text/xml"
42
Sub CreateXmlHeader( command, resourceType, currentFolder, url )
43
' Create the XML document header.
44
Response.Write "<?xml version=""1.0"" encoding=""utf-8"" ?>"
46
' Create the main "Connector" node.
47
Response.Write "<Connector command=""" & command & """ resourceType=""" & resourceType & """>"
49
' Add the current folder node.
50
Response.Write "<CurrentFolder path=""" & ConvertToXmlAttribute( currentFolder ) & """ url=""" & ConvertToXmlAttribute( url ) & """ />"
54
Response.Write "</Connector>"
57
Sub SendError( number, text )
60
' Create the XML document header.
61
Response.Write "<?xml version=""1.0"" encoding=""utf-8"" ?>"
64
Response.Write "<Connector><Error number=""" & number & """ text=""" & Server.HTMLEncode( text ) & """ /></Connector>"
66
Response.Write "<Connector><Error number=""" & number & """ /></Connector>"