When trying to convert the well-formed text to XML, one will often encounter an obscure "Parse Error". This is caused by Parse::RecDescent, which is used for parsing. The best way I found to deal with it is to gradually eliminate parts of the document until the offending markup is isolated.
In the future, I plan on writing a custom parser that will provide better diagnostics and will hopefully also be faster.
To install XML::Grammar::Fiction, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Grammar::Fiction
CPAN shell
perl -MCPAN -e shell install XML::Grammar::Fiction
For more information on module installation, please visit the detailed CPAN module installation guide.