mausch / XmlLiteralsTypeProvider

F# type provider implementing compile-time XML literals
Apache License 2.0
5 stars 2 forks source link

Read from file #1

Closed mausch closed 10 years ago

panesofglass commented 10 years ago

:+1:

panesofglass commented 10 years ago

This seems like it should be easy, but I was unsure how to go about it. What's the normal way of doing this? Should I check whether the string is XML or a file path? Should I use multiple parameters? I noticed FSharp.Data seems to have some helpers for this, but I couldn't find everything easily. Also, the JsonProvider in particular appeared to do the first option of parsing the input and "doing the right thing."