Census Geocoder JSON output convert to Xml dataset using JSON.net in C#

前端 未结 2 1021
夕颜
夕颜 2020-12-21 23:27

I am creating a .Net app in Visual Studio 2012 that queries an address table in my SQL dB and uses the Census Geocoding API to return the specific MSA for each address. I ha

2条回答
  •  不思量自难忘°
    2020-12-22 00:15

    Need you to post what you are attempting to load into the XmlDocument. That is where you are hitting your problem. If you are trying to load the JSON you get from the web call it won't work, if you are (as I suspect) using JSON.Net to convert the JSON to Xml, the Xml is missing something that the XmlDocument wants. Could be the Xml declaration line, or your xml fragment may not include a root node. Without seeing the xml we have no way to tell specifically what is missing or malformed.

提交回复
热议问题