var $_value;
var $_currentTag;
var $_currentTagContents;
- var $_valueHasType = false;
// The XML parser
var $_parser;
$this->_arraystructstypes[] = 'struct';
$this->_arraystructs[] = array();
break;
- case 'value':
- $this->_valueHasType = false;
}
}
break;
case 'value':
// "If no type is indicated, the type is string."
- if ( !$this->_valueHasType ) {
- $value = trim( $this->_currentTagContents );
+ if (trim($this->_currentTagContents) != '') {
+ $value = (string)$this->_currentTagContents;
$valueFlag = true;
}
break;
}
if ($valueFlag) {
- $this->_valueHasType = true;
-
if (count($this->_arraystructs) > 0) {
// Add value to struct or array
if ($this->_arraystructstypes[count($this->_arraystructstypes)-1] == 'struct') {