Can scala's parser combinators parse xml and validate that the closing tags have the same name as the opening tags? I don't directly need it, but I would like to know the limits of my libraries.
相关问题
- Illegal to have multiple roots (start tag in epilo
- Unusual use of the new keyword
- Correctly parse PDF paragraphs with Python
- Get Runtime Type picked by implicit evidence
- Newtonsoft DeserializeXNode expands internal array
相关文章
- Gatling拓展插件开发,check(bodyString.saveAs("key"))怎么实现
- Creating XML Elements without namespace declaratio
- RDF libraries for Scala [closed]
- Get Attribute Value From Simple XML Using JQuery /
- Why is my Dispatching on Actors scaled down in Akk
- How do I get from a type to the TryParse method?
- How do you run cucumber with Scala 2.11 and sbt 0.
- Directly signing an Office Word document using XML
This document seem to describe an attempt on that: http://www.berniepope.id.au/docs/scala_parser_combinators.pdf
... and a link to the software (Scala XML-parser): http://www.berniepope.id.au/software.html
Yes, it can do that. Use
into
or>>
(which is the same thing, really) to parameterize a latter parser based on a parsed value.You might also be interested in XML pickler combinators, part of the GData Scala client library. I've pulled out the pickler combinators and made them available in a self-contained library here.