{"action":"closed","issue":{"url":"https://api.github.com/repos/fsharp/FSharp.Data/issues/890","labels_url":"https://api.github.com/repos/fsharp/FSharp.Data/issues/890/labels{/name}","comments_url":"https://api.github.com/repos/fsharp/FSharp.Data/issues/890/comments","events_url":"https://api.github.com/repos/fsharp/FSharp.Data/issues/890/events","html_url":"https://github.com/fsharp/FSharp.Data/issues/890","id":118359968,"number":890,"title":"XmlProvider Optionnal types","user":{"login":"Samvrie","id":8591859,"avatar_url":"https://avatars.githubusercontent.com/u/8591859?v=3","gravatar_id":"","url":"https://api.github.com/users/Samvrie","html_url":"https://github.com/Samvrie","followers_url":"https://api.github.com/users/Samvrie/followers","following_url":"https://api.github.com/users/Samvrie/following{/other_user}","gists_url":"https://api.github.com/users/Samvrie/gists{/gist_id}","starred_url":"https://api.github.com/users/Samvrie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samvrie/subscriptions","organizations_url":"https://api.github.com/users/Samvrie/orgs","repos_url":"https://api.github.com/users/Samvrie/repos","events_url":"https://api.github.com/users/Samvrie/events{/privacy}","received_events_url":"https://api.github.com/users/Samvrie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-23T11:10:08Z","updated_at":"2015-11-25T05:55:01Z","closed_at":"2015-11-25T05:55:01Z","body":"Hi, I have a question about the XmlProvider about optional types.\r\n\r\nI've an element that look like this\r\n``` XML\r\n<Element A=\"132\" B=\"Ac\">\r\n</Element>\r\n```\r\nAnd I would like to mark the B Element as optional.\r\nTo do that in my Sample Xml files I created two *Element*.\r\n``` XML\r\n<Element A=\"132\" B=\"Ac\">\r\n</Element>\r\n<Element A=\"132\">\r\n</Element>\r\n```\r\nWith that *Hack* the **XmlProvider** can figure out that the *B Attribute* is actually optional, but when I load an XmlFile it propose me a List of Element, but there's only one in my XmlFile so I access it with \r\n\r\n``` FSharp\r\nArray.get List 0\r\n```\r\nThis work but isn't really the result I would like in my code...\r\n\r\nAny suggestions?\r\n"}}