jahewson/node-big-xml — pull request #3 by justcfx2u (2013-05-04 20:31:25+00:00)
Title: Fix-up multiple text events from expat

This code appends text events if it already exists. This occurs when
processing XML entries such as `'` which come through from expat as
multiple text events.

Example:
```xml
Jack's
```
comes as 3 text events:
`Jack`,
`\'`, and
`s`

It also does not assume to modify the XML data.

Before these changes,
```xml
J & J
```
would be processed as:
```json
{tag: 'foo', text: 'J'}
```

Using appending only, it would be interpted as:
```json
{tag: 'foo', text: 'J &J'}
```
Eliminating trimLeft() yields
```json
{tag: 'foo', text: 'J & J'}
```
which is correct.

The above "Jack's" example also comes through cleanly:
```xml
Jack's
```
becomes
```json
{tag: 'foo', text: 'Jack\'s'}
```
as expected.