Changeset 445
- Timestamp:
- 03/29/07 22:34:06 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/xml/serializer/stubXMLSerializer.php
r393 r445 82 82 } 83 83 $xmlWriter->writeStartElement($tagName); 84 $xmlWriter->writeText($data === true ? 'true' : false);84 $xmlWriter->writeText($data === true ? 'true' : 'false'); 85 85 $xmlWriter->writeEndElement(); 86 86 break; … … 144 144 $propValue = $property->getValue($object); 145 145 146 if ($property->hasAnnotation('XMLAttribute') && $property->hasAnnotation('XMLTag')) { 147 throw new stubXMLException('It is not possible specify @XMLAttribute and @XMLTag for a property.'); 148 } 146 149 if ($property->hasAnnotation('XMLAttribute')) { 147 150 $xmlAttribute = $property->getAnnotation('XMLAttribute'); … … 200 203 201 204 $returnValue = $method->invoke($object); 205 if ($method->hasAnnotation('XMLAttribute') && $method->hasAnnotation('XMLTag')) { 206 throw new stubXMLException('It is not possible specify @XMLAttribute and @XMLTag for a method.'); 207 } 202 208 if ($method->hasAnnotation('XMLAttribute')) { 203 209 $xmlAttribute = $method->getAnnotation('XMLAttribute');
