bryonjacob / wikimodel

Automatically exported from code.google.com/p/wikimodel
0 stars 0 forks source link

XHTML parser chokes when there's a XML declaration #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Input:

<?xml version="1.0" encoding="UTF-8"?>
<html><head /><body>one two three</body></html>

Output:

beginDocument
beginParagraph
onWord: [one]
onSpace
onWord: [t]
onWord: [wo]
onSpace
onWord: [three]
endParagraph
endDocument

Expected:

beginDocument
beginParagraph
onWord: [one]
onSpace
onWord: [two]
onSpace
onWord: [three]
endParagraph
endDocument

If I remove the <xml> declaration it works just fine.

Thanks

Original issue reported on code.google.com by vmas...@gmail.com on 27 Aug 2008 at 8:29

GoogleCodeExporter commented 8 years ago
Was a duplicate of a previous issue (problem with SAX parser not aggregating
characters() data before handling them). For some reason the patch wasn't 
applied in
wikimodel svn when I thought it was.

Original comment by vmas...@gmail.com on 28 Aug 2008 at 2:13