Index: trunk/phase3/includes/parser/Preprocessor_DOM.php |
— | — | @@ -37,15 +37,14 @@ |
38 | 38 | |
39 | 39 | function newPartNodeArray( $values ) { |
40 | 40 | //NOTE: DOM manipulation is slower than building & parsing XML! (or so Tim sais) |
41 | | - $xml = ""; |
42 | | - $xml .= "<list>"; |
| 41 | + $xml = "<list>"; |
43 | 42 | |
44 | 43 | foreach ( $values as $k => $val ) { |
45 | 44 | |
46 | 45 | if ( is_int( $k ) ) { |
47 | 46 | $xml .= "<part><name index=\"$k\"/><value>" . htmlspecialchars( $val ) ."</value></part>"; |
48 | 47 | } else { |
49 | | - $xml .= "<part><name>" . htmlspecialchars( $k ) . "</name>=<value>" . htmlspecialchars( $val ) . "</value></part>"; |
| 48 | + $xml .= "<part><name>" . htmlspecialchars( $k ) . "</name><value>" . htmlspecialchars( $val ) . "</value></part>"; |
50 | 49 | } |
51 | 50 | } |
52 | 51 | |