xml
elm: read file content
Is there a way to read a file in elm? I want to have an xml settings file where I will keep different settings and read it with elm (I've seen this parser, but it expects the xml content, not path). I don't want to use ports and these stuff. I need to apply some transformations to this xml because I will have more sets of values (staging and production) and I will need to generate an artefact for each value (I'm using TFS for this).
As of today (0.18.0), officially Elm does not support File API and other file-related APIs. You can perform I/O only through WebSockets or over HTTP. Anything else is covered by ports.
This library provides access to the filereader API. It is only on github because, as it uses native code, it cannot be published on elm-package. However if you want to use it with xml you might we be best using ports anyway, because then you could get javascripts xml parsing too, which will otherwise be a challenge in Elm too.
Related Links
Cannot extract correct data from XML in GO
Watch xml sent to jasper report
XSLT Prevent or Remove multiple References
XML schema and instance wrong
Cannot view XML after applying XSL Transform
What to use XML or JSON for?
XSLT 2.0 - change namespace without discarding existing prefix bindings
Output 4 days in weatherdata xml using xslt
Powershell - how do you parse out content:encoded from RSS feed (XML)?
What is the correct notation with Delphi's XmlIntf.IXMLNode for writing and reading a CDATA XML section alongside other 'standard' data types?
Convert text to XML using XSLT without knowing what the “schema” would be
How to use key and keyref in XSD?
Google apps retrieve user info
how to split xml root into two branches - with all but a specific child in the first branch and the specific child in the second
XML validation: is it necessary to bind the elements to a namespace?
How to read the processing-instructions properties?