Reputation: 1838
Is there an XML processing library for Scala "that strives for correctness, simplicity, and performance, in that order" like does XOM for Java? (Scala XML API is not an option)
Upvotes: 2
Views: 351
Reputation: 2873
Why dont you simply wrap the absolutely excellent XOM with implicit conversions and such? Yes, it won't give you scala's XML-native-syntax style out of the box...
Upvotes: 1
Reputation: 2811
In case others come here, Scales Xml is the most XOM like, in fact its correctness extends to modelling QNames directly, sharing the model with both DOM and Pull Parsing and even correcting annoying JAXP impl serialization errors (bad cdata splits etc).
Its also faster than Scala Xml, whilst providing lower memory usage.
I'm not sure about simpler though, as that's mostly dependent on the users perspective. It does however strive to be simple through both better use of the type system and providing an XPath Dsl for most of its tree handling.
Its a radically different approach for most xml handling, whereas Anti-Xml looks very similar to Scala Xml.
Upvotes: 4
Reputation: 297265
The only alternative XML library for Scala as far as I know is anti-xml, which is an effort started not two weeks ago. It is not really useful for anything right now, but you can at least try to influence its development if you find it worthy.
Upvotes: 6