Can scala parser comparators parse xml and verify that the closing tags have the same name as the opening tags? I do not need this directly, but I would like to know the limits of my libraries.
Yes, he can do it. Use intoor >>(which is actually the same) to parameterize the last parser based on the parsed value.
into
>>
This document describes an attempt: http://www.berniepope.id.au/docs/scala_parser_combinators.pdf
... (Scala XML-): http://www.berniepope.id.au/software.html
You may also be interested in XML Sorter Compilers , part of the GData Scala Client Library. I pulled out the sorter combinators and made them available in the standalone library here .