title: how to send whole xml file with data in azure service bus
body: <p>If I am trying to send xml file it is giving 'System.Runtime.Serialization.InvalidDataContractException' exception.Is there any other way to send xml file name with data in azure service bus.</p>
  
  <pre><code> foreach (string file in Directory.EnumerateFiles(@"C:\Users\shubham.mittal\Desktop\xml", "*.xml"))
              {
                  string contents = File.ReadAllText(file);
                  XDocument doc = XDocument.Parse(contents);
  
                  BrokeredMessage b = new BrokeredMessage(doc);
                  //Send the message to the queue.
                  client.Send(b);
             }
  </code></pre>