rule editor: parse message
some fixes for rule parsing, still incomplete
don't get confused by whitespace; use robust comparisons
improve parsing example sentences
small code cleanup
use 'pre' so indentation is kept when the XML is copied