<?xml version="1.0" encoding="UTF-8"?><placename>  <system>China Historical GIS, Harvard University and Fudan University</system>  <license>CC BY-NC 4.0</license>  <uri>https://chgis.hudci.org/tgaz/placename/hvd_40545</uri> <spellings>    <spelling>      <written-form script="traditional Chinese">上元縣</written-form>      <exonym-lang></exonym-lang>      <attested-by></attested-by>      <note></note>    </spelling>    <spelling>      <written-form script="simplified Chinese">上元县</written-form>      <exonym-lang></exonym-lang>      <attested-by></attested-by>      <note></note>    </spelling>    <spelling>      <transcription system="Pinyin">Shangyuan Xian</transcription>      <exonym-lang></exonym-lang>      <attested-by></attested-by>      <note></note>    </spelling>  </spellings>  <feature-type>    <name>县</name>    <alternate-name>縣</alternate-name>    <transcription>xian</transcription>    <translation lang="en">county</translation>  </feature-type>  <temporal>    <begin>761</begin>    <begin-rule>0</begin-rule>    <end>1355</end>    <end-rule>0</end-rule>  </temporal>  <spatial>    <object-type>POINT</object-type>    <xy-type>point</xy-type>    <latitude-direction>N</latitude-direction>    <degrees-latitude>32.05256</degrees-latitude>    <longitude-direction>E</longitude-direction>    <degrees-longitude>118.76899</degrees-longitude>    <geo-source>FROM_AC</geo-source>    <present-location><br />
<b>Warning</b>:  Undefined array key "text_value" in <b>/var/www/html/tgaz/placename.php</b> on line <b>547</b><br />
     </present-location>  </spatial>  <historical-context>    <part-of-relationships>      <part-of parent-id="hvd_32311" from="761" to="886" >        <parent-name>润州</parent-name>        <transcribed-name>Run Zhou</transcribed-name>      </part-of>      <part-of parent-id="hvd_32303" from="887" to="919" >        <parent-name>升州</parent-name>        <transcribed-name>Sheng Zhou</transcribed-name>      </part-of>      <part-of parent-id="hvd_32304" from="920" to="936" >        <parent-name>金陵府</parent-name>        <transcribed-name>Jinling Fu</transcribed-name>      </part-of>      <part-of parent-id="hvd_32305" from="937" to="974" >        <parent-name>江宁府</parent-name>        <transcribed-name>Jiangning Fu</transcribed-name>      </part-of>      <part-of parent-id="hvd_32299" from="975" to="1017" >        <parent-name>升州</parent-name>        <transcribed-name>Sheng Zhou</transcribed-name>      </part-of>      <part-of parent-id="hvd_32298" from="1018" to="1128" >        <parent-name>江宁府</parent-name>        <transcribed-name>Jiangning Fu</transcribed-name>      </part-of>      <part-of parent-id="hvd_32297" from="1129" to="1276" >        <parent-name>建康府</parent-name>        <transcribed-name>Jiankang Fu</transcribed-name>      </part-of>      <part-of parent-id="hvd_32291" from="1277" to="1328" >        <parent-name>建康路</parent-name>        <transcribed-name>Jiankang Lu</transcribed-name>      </part-of>      <part-of parent-id="hvd_32288" from="1329" to="1355" >        <parent-name>集庆路</parent-name>        <transcribed-name>Jiqing Lu</transcribed-name>      </part-of>    </part-of-relationships>    <subordinate-units><br />
<b>Warning</b>:  Undefined array key "child_sys_id" in <b>/var/www/html/tgaz/placename.php</b> on line <b>566</b><br />
<br />
<b>Warning</b>:  Undefined array key "begin_year" in <b>/var/www/html/tgaz/placename.php</b> on line <b>566</b><br />
<br />
<b>Warning</b>:  Undefined array key "end_year" in <b>/var/www/html/tgaz/placename.php</b> on line <b>566</b><br />
      <subordinate-unit sys-id="" from="" to="" ><br />
<b>Warning</b>:  Undefined array key "child_vn" in <b>/var/www/html/tgaz/placename.php</b> on line <b>567</b><br />
        <name></name><br />
<b>Warning</b>:  Undefined array key "child_tr" in <b>/var/www/html/tgaz/placename.php</b> on line <b>568</b><br />
        <transcribed-name></transcribed-name>      </subordinate-unit>    </subordinate-units>  </historical-context>  <data-source>CHGIS</data-source>  <source-note>    <![CDATA[      <html><body>上元县（761年—1355年）治所<br><br>唐上元二年（761年）改江宁县为上元县。治今江苏南京市。元至正十六年（1356年）迁治今江宁县东淳化。<br><br>唐上元二年（761年）改江宁县为上元县，属润州（1）。治今江苏南京市（2）。光启三年（887年）为升州治（3）。天祐十四年（917年）与江宁县同为升州治（4）。五代扬吴武义二年（920年）并为金陵府治，南唐升元元年（937年）并为江宁府治（5）。北宋开宝八年（975年）地入宋（6），并为升州治，天禧二年（1018年）并为江宁府治（7）。南宋建炎三年（1129年），并为建康府治（8）。德祐元年（1275年）地入元（9）。元至元十四年（1277年）并为建康路治。天历二年（1329年）并为集庆路治（10）。至正十六年（1356年）地入明（11），迁县治于今江宁县东淳化（12）。<br><br>注：<br>（1）《旧唐书》卷40《地理志三》：升州上元县，贞观九年（635年）改白下县为江宁县，“上元二年（761年），复为上元县，还润州。”（北京，中华书局，1975年，5册，1584页）《元和郡县图志》卷25《江南道一》：润州上元县，贞观九年，改白下县为江宁县，至德二年，于县置江宁郡，乾元元年改为升州，“上元二年，废升州，仍改江宁县为上元县。”（北京，中华书局，1983年，下册，594页）<br>（2）《旧唐书》卷40《地理志三》：“贞观七年（633年），复移（白下县）今所。九年，改为江宁县。……乾元元年（758年），于江宁置升州。……上元二年（761年），复为上元县。”（北京，中华书局，1975年，5册，1584页）《太平寰宇记》卷90《江南东道二》：江宁县，“贞观七年，移还冶城。九年，复为江宁县。……上元二年，……改为上元县。”（金陵书局，光绪八年刊本，17册，5页）郭黎安《六朝建康》：冶城下引《六朝事迹编类》云：“冶城，今天庆观即其地也。本吴冶铸之所，因以为名。”又云：“宋天庆观即今南京市朝天宫。”（香港天马图书有限公司，2002年，221页）则唐贞观七年（633年）移治今南京市，九年，改为江宁县，上元二年改为上元县。又《太平寰宇记》云：光启三年（887年）“徙上元县于凤台山西南一里”（同上书，6页），据清《嘉庆一统志》卷73《江宁府一·山川》引《府志》：“凤凰冈近凤台门，南傍秦淮。”又引《通志》云：“在府西南聚宝门内。”（《四部丛刊续编》，商务印书馆，1934年，24册，13页）秦淮，即今南京秦淮河，聚宝门为明代南京城正南正阳门之西通济门又西之门，则在今南京市区。又《太平寰宇记》云：“今移在伪司会府”（同上书，12页）《景定建康志》卷15《地所统县名》：上元县，“《寰宇记》云国朝迁南唐司会府，今府治之东。”（《宋元方志丛刊》，北京，中华书局，1990年，2册，1523页）按南宋建康府治，在今南京市区，则北宋徙治司会府，亦在今南京市。<br>（3）《新唐书》卷41《地理志五》（北京，中华书局，1975年，4册，1057页）、《太平寰宇记》卷90《江南东道二》（金陵书局，光绪八年刊本，17册，3、12页）并载光启三年（887年）于上元县置升州，《资治通鉴》卷258《唐纪七十四》：大顺元年（890年），“置升州于上元县。”（北京，中华书局，1956年，18册，8410页）年代不同。<br>（4）据《太平寰宇记》卷90《江南东道二》记载：唐天祐十四年（917年），析上元县置江宁县，与上元县并为升州治（金陵书局，光绪八年刊本，17册，3—6页）。<br>（5）《景定建康志》卷15《疆域志一·地所置府》：伪吴武义二年（920年）改升州为金陵府。”（北京，中华书局，1990年，2册，1523页）。《资治通鉴》卷281《后晋纪二》：天福二年（937年），徐知诰“改金陵为江宁府。”（北京，中华书局，1956年，19册，9169页）上元、江宁二县分治府郭下，并见清吴任臣《十国春秋》卷111《十国地理表上》（北京，中华书局，4册，1585页）。又《太平寰宇记》卷90《江南东道二·升州》：天祐十四年（917年），伪吴遣部将徐温城之，为金陵府。”（金陵书局，光绪八年刊本，17册，3页）《舆地纪胜》卷17《江南东路·建康府》同（北京，中华书局影印本，1992年，1册，724页），与上引《景定建康志》记载年代不同。<br>（6）《宋史》卷3《太祖纪三》：开宝八年（975年），“江南平。”（北京，中华书局，1977年，1册，45页）<br>（7）《元丰九域志》卷6《江南东路·江宁府》，北京，中华书局，1984年，上册，239—240页。<br>（8）《舆地纪胜》卷17《江南东路·建康府》，北京，中华书局影印本，1992年，725—727页。<br>（9）《宋史》卷47《瀛国公》：德祐元年（1275年），“大元兵入建康府，镇江统制石祖忠清降于建康。”（北京，中华书局，1    ]]>  </source-note>  <source-uri>      </source-uri></placename>