Last active
March 6, 2019 11:26
-
-
Save iwasdavid/2b65c4259c284a3c910266c2f5a1e308 to your computer and use it in GitHub Desktop.
sample.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Content> | |
<Blah>adasd</Blah> | |
<Stuff>asdadas</Stuff> | |
<Thing>asdasd</Thing> | |
<Other>asdadas</Other> | |
</Content> | |
<Content> | |
<Blah>adasd</Blah> | |
<Stuff>asdadas</Stuff> | |
<Other>asdadas</Other> | |
</Content> | |
<Content> | |
<Blah>adasd</Blah> | |
</Content> | |
<Content> | |
<Blah>adasd</Blah> | |
<Blah>adasd</Blah> | |
<Blah>adasd</Blah> | |
<Other>asdadas</Other> | |
</Content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:element name="Content"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip" /> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
</xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module XmlParserTest | |
open FSharp.Data | |
open System.Xml.Linq | |
type Example = XmlProvider<Schema="./sample.xsd"> | |
let content = XElement(XName.Get "SomeTag", "Text") | |
let getXml () = Example.Content(content) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment