Message 1 of 3
XmlDictionaryReader to XML file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
I am playing around with the Revit Server REST API SDK example. I am slowly understanding how it works.
I understand that you make a request and then you get a response in json format, which we then transform with the XmlDictionaryReader to an xml (is that right?). To continue understanding the SDK example I would like to see how that request looks like in xml format. So far I have tried the following:
XmlDictionaryReader reader = GetResponse(path + "/contents"); File.WriteAllText("D:\\xmltest.txt", reader.ReadString());
but this doesn't return anything.
Is there a way to export the Request response as an xml? I am very lost in this as I am not used to deal with json or xml programmatically.
Many thanks