Permalink
Browse files

Allow text body together with attributes

  • Loading branch information...
1 parent b4b695d commit 092d65c395e30737bd0c172c116c5830e17a373b @mrook mrook committed Apr 16, 2013
Showing with 8 additions and 1 deletion.
  1. +8 −1 SVN/Parser/XML.php
View
@@ -194,7 +194,14 @@ protected static function getParsedElement(
if (isset($xmlPathConfig['config'])
&& 'string' === $xmlPathConfig['config']
) {
- $data = self::getParsedString($reader, $xmlEntry);
+ if (count($data) > 0) {
+ $data = array_merge(
+ array('text' => self::getParsedString($reader, $xmlEntry)),
+ $data
+ );
+ } else {
+ $data = self::getParsedString($reader, $xmlEntry);
+ }
} else {
$data = array_merge(
self::getParsedEntry($reader, $xmlEntry, $xmlPathConfig),

0 comments on commit 092d65c

Please sign in to comment.