Merge pull request #10 from cgrinds/patch-1

CDATA is overwritten, append instead
This commit is contained in:
jimt 2013-03-28 13:12:26 -07:00
commit 6de2878785
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ func (this *Document) LoadStream(r io.Reader, charset CharsetFunc) (err error) {
case xml.SyntaxError:
return errors.New(tt.Error())
case xml.CharData:
ct.Value = strings.TrimSpace(string([]byte(tt)))
ct.Value = ct.Value + strings.TrimSpace(string([]byte(tt)))
case xml.Comment:
t := NewNode(NT_COMMENT)
t.Value = strings.TrimSpace(string([]byte(tt)))