anchor.diff:  inferred based on the values in the sample document. In this case, the `Name` property
   has a type `string` and `Born` is `int`.
   
  -XML is quite flexible format, so we could represent the same document differently.
  +XML is a quite flexible format, so we could represent the same document differently.
   Instead of using attributes, we could use nested nodes (`<name>` and `<born>` nested
   under `<author>`) that directly contain the values:*)
   
  
positive.code: ﻿(** 
  # F# Data: XML Type Provider
  
  This article demonstrates how to use the XML type provider to access XML documents
  in a statically typed way. We first look how the structure is inferred and then 
  demonstrate the provider by parsing RSS feed.
  
  The XML type provider provides a statically typed access to XML documents.
  It takes a sample document as an input (or document containing a root XML node with
  multiple child nodes that are used as samples). The generated type can then be used 
  to read files with the same structure. If the loaded file does not match the structure 
  of the sample, an runtime error may occur (but only when accessing e.g. non-existing element).
  
  ## Introducing the provider
  
  The type provider is located in the `FSharp.Data.dll` assembly. Assuming the assembly 
  is located in the `../../bin` directory, we can load it in F# Interactive as follows:
  (note we also need a reference to `System.Xml.Linq`, because the provider uses the
  `XDocument` type under the cover): *)
  
  #r "../../../bin/FSharp.Data.dll"
  #r "System.Xml.Linq.dll"
  
negative.code: ### Inferring type from sample
  
  The `XmlProvider<...>` takes one static parameter of type `string`. The parameter can 
  be _either_ a sample XML string _or_ a sample file (relative to the current folder or online 
  accessible via `http` or `https`). It is not likely that this could lead to ambiguities. 
  
  The following sample generates a type that can read simple XML documents with a root node
  containing two attributes:
  *)
  
  type Author = XmlProvider<"""<author name="Paul Feyerabend" born="1924" />""">
  