How to read XML in F #?

Interestingly, reading XML with XmlReader will look in an idiomatic functional style. Namely, how XmlReader should be treated as an object with state. Is there a good example?

+4
source share
1 answer

I would say that it XmlReaderis a good choice if you need to process a large XML document without reading the entire document in memory (i.e. process streams). It is not particularly functional, but it is fine - when doing I / O in F # you do not need to write it functionally, because it is always difficult with I / O (not impossible, but F # users are simply inclined to use standard .NET libraries) .

, XML-, . XML , , XML .

(- XHTML), XDocument ( API, XmlDocument) F #).

+7

All Articles