tarsqi / ttk

Tarsqi Toolkit
Apache License 2.0
25 stars 10 forks source link

SourceParser should deal with non-XML input #1

Closed marcverhagen closed 8 years ago

marcverhagen commented 8 years ago

The SourceParser now breaks on non well formed XML, but it shouldn't. Note that the SourceParser applies before the docmodel parsers, so it should be totally oblivious to whether the input is a Timebank file, a simple XML file or a text file.

However, maybe the SourceParser should fail on non well-formed XML if the --source option indicates that the document is supposed to be XML, or at least write an error.

marcverhagen commented 8 years ago

Did this as part of https://github.com/tarsqi/ttk/commit/b065a918313be0219ceba7de53261742144feddf.