phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] api/class.xmltool.php, 1.1.1.1.2.12


From: nomail
Subject: [Phpgroupware-cvs] api/class.xmltool.php, 1.1.1.1.2.12
Date: Tue, 22 Jun 2004 17:42:43 +0200

Update of /api
Modified Files:
        Branch: proposal-branch
          class.xmltool.php

date: 2004/06/22 15:42:43;  author: dcech;  state: Exp;  lines: +8 -3

Log Message:
minor response stuff in xmlrpc interface
fixed xmltool to not clobber embedded whitespace
=====================================================================
Index: api/class.xmltool.php
diff -u api/class.xmltool.php:1.1.1.1.2.11 api/class.xmltool.php:1.1.1.1.2.12
--- api/class.xmltool.php:1.1.1.1.2.11  Tue Jun 15 17:53:31 2004
+++ api/class.xmltool.php       Tue Jun 22 15:42:43 2004
@@ -393,6 +393,10 @@
                                switch ($data[$i]['type'])
                                {
                                        case 'cdata':
+                                               if (trim($data[$i]['value']) == 
'')
+                                               {
+                                                       break;
+                                               }
                                        case 'complete':
                                                $node = new 
api_xmltool('node',$data[$i]['tag'],$this->indentstring);
                                                
if(is_array($data[$i]['attributes']) && count($data[$i]['attributes']) > 0)
@@ -429,10 +433,11 @@
                {
                        $parser = xml_parser_create();
                        xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 
0);
-                       xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE,   
1);
+                       xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE,   
0);
                        xml_parse_into_struct($parser, $xmldata, $vals, $index);
                        xml_parser_free($parser);
-                       unset($index);  
+                       unset($index);
+                       
                        $node = new 
api_xmltool('node',$vals[0]['tag'],$this->indentstring);
                        if(isset($vals[0]['attributes']))
                        {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]