2
* FCKeditor - The text editor for internet
3
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
5
* Licensed under the terms of the GNU Lesser General Public License:
6
* http://www.opensource.org/licenses/lgpl-license.php
8
* For further information visit:
9
* http://www.fckeditor.net/
11
* "Support Open Source software. What about a donation today?"
13
* File Name: basexml.asp
14
* This file include the functions that create the base XML output.
17
* Frederico Caldeira Knabben (fredck@fckeditor.net)
22
' Cleans the response buffer.
25
' Prevent the browser from caching the result.
26
Response.CacheControl = "no-cache"
28
' Set the response format.
29
Response.CharSet = "UTF-8"
30
Response.ContentType = "text/xml"
33
Sub CreateXmlHeader( command, resourceType, currentFolder )
34
' Create the XML document header.
35
Response.Write "<?xml version=""1.0"" encoding=""utf-8"" ?>"
37
' Create the main "Connector" node.
38
Response.Write "<Connector command=""" & command & """ resourceType=""" & resourceType & """>"
40
' Add the current folder node.
41
Response.Write "<CurrentFolder path=""" & ConvertToXmlAttribute( currentFolder ) & """ url=""" & ConvertToXmlAttribute( GetUrlFromPath( resourceType, currentFolder) ) & """ />"
45
Response.Write "</Connector>"
48
Sub SendError( number, text )
51
' Create the XML document header.
52
Response.Write "<?xml version=""1.0"" encoding=""utf-8"" ?>"
54
Response.Write "<Connector><Error number=""" & number & """ text=""" & Server.HTMLEncode( text ) & """ /></Connector>"
b'\\ No newline at end of file'