aboutsummaryrefslogtreecommitdiffstats
path: root/build/js/xml.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/js/xml.js')
-rw-r--r--build/js/xml.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/build/js/xml.js b/build/js/xml.js
deleted file mode 100644
index 1d50558e1..000000000
--- a/build/js/xml.js
+++ /dev/null
@@ -1,25 +0,0 @@
-Object.toXML = function( obj, tag ) {
- if ( obj.constructor == Array ) {
- var ret = "";
- for ( var i = 0; i < obj.length; i++ )
- ret += Object.toXML( obj[i], tag );
- return ret;
- } else if ( obj.constructor == Object ) {
- var tag = tag || "tmp";
- var p = "", child = "";
-
- for ( var i in obj )
- if ( ( obj[i].constructor != String && obj[i].constructor != Number ) || /</.test(obj[i] + "") || Object.toXML.force[i] )
- child += Object.toXML( obj[i], i );
- else
- p += " " + i + "='" + (obj[i] + "").replace(/'/g, "&apos;") + "'";
-
- return "<" + tag + p + ( child ? ">\n" + child + "</" + tag + ">\n" : "/>\n" );
- } else if ( obj.constructor == String || obj.constructor == Number ) {
- return "<" + tag + ">" + obj + "</" + tag + ">\n";
- }
-
- return "";
-};
-
-Object.toXML.force = {};