38 $this->oObject=$oObject;
40 $this->sEncoding=
'UTF-8';
42 $this->sRootName=
'root';
50 $this->sEncoding=$sEncoding;
58 $this->sRootName=$sRootName;
66 $this->tColumn=$tColumn;
74 header (
"Content-Type:text/xml");
86 $this->sXml.=
'<?xml version="1.0" encoding="'.$this->sEncoding.
'"?>';
88 $this->open($this->sRootName);
89 foreach($this->tColumn as $sColumn){
90 $this->add($sColumn,$this->oObject->$sColumn);
92 $this->close($this->sRootName);
97 private function add($sTag,$sValue){
98 $this->sXml.=
'<'.$sTag.
'><![CDATA['.$sValue.
']]></'.$sTag.
'>';
101 private function open($sTag){
102 $this->sXml.=
'<'.$sTag.
'>';
104 private function close($sTag){
105 $this->sXml.=
'</'.$sTag.
'>';