set indentstring to '' for var2xml and to "\t" for the rest

This commit is contained in:
Ralf Becker 2002-10-01 22:13:09 +00:00
parent 290ba0b094
commit fbd5f81c0e

View File

@ -2,6 +2,7 @@
function var2xml($name, $data) function var2xml($name, $data)
{ {
$doc = new xmltool(); $doc = new xmltool();
$doc->indentstring = '';
return $doc->import_var($name,$data,True,True); return $doc->import_var($name,$data,True,True);
} }
@ -18,7 +19,7 @@
/* for nodes */ /* for nodes */
var $attributes = Array(); var $attributes = Array();
var $comments = Array(); var $comments = Array();
var $indentstring = " "; var $indentstring = "\t";
/* start the class as either a root or a node */ /* start the class as either a root or a node */
function xmltool ($node_type = 'root', $name='') function xmltool ($node_type = 'root', $name='')