<?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_42551</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">Anyuan 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>1006</begin>    <begin-rule>4</begin-rule>    <end>1373</end>    <end-rule>4</end-rule>  </temporal>  <spatial>    <object-type>POINT</object-type>    <xy-type>point</xy-type>    <latitude-direction>N</latitude-direction>    <degrees-latitude>21.95143</degrees-latitude>    <longitude-direction>E</longitude-direction>    <degrees-longitude>108.61440</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_34029" from="1006" to="1126" >        <parent-name>钦州</parent-name>        <transcribed-name>Qin Zhou</transcribed-name>      </part-of>      <part-of parent-id="hvd_34030" from="1127" to="1279" >        <parent-name>钦州</parent-name>        <transcribed-name>Qin Zhou</transcribed-name>      </part-of>      <part-of parent-id="hvd_33012" from="1280" to="1368" >        <parent-name>钦州路</parent-name>        <transcribed-name>Qinzhou Lu</transcribed-name>      </part-of>      <part-of parent-id="hvd_33013" from="1369" to="1373" >        <parent-name>钦州府</parent-name>        <transcribed-name>Qinzhou Fu</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>安远县（1006-1373年）治所（张修桂编写）<br><br>宋景德三年（1006年）以安京县改名，属钦州（1）。治所即今广西钦州市（2）。建炎元年（1127年）为州治（3）。元至元十七年（1280年）为钦州路治（4）。明洪武二年（1369年）为钦州府治，七年（1374年）十一月降府为州，县省入钦州（5）。<br><br>————————————————————<br>（1），《元丰九域志》卷9?广南路：“钦州，宁越郡。治灵山县。县二：开宝五年省遵化、内亭、钦江三县入灵山。景德三年改安京县为安远。灵山；安远。”（北京，中华书局，上册，435页，1984年）。<br>（2），《嘉庆一统志》卷450?廉州府?古迹：安远故城“今钦州治。旧志：梁武帝分宋寿郡置安京郡。隋平陈郡废为安京县，属宁越郡。唐属钦州，至德二年改曰保京。宋初复曰安京，景德二年改曰安远县，仍属钦州。南渡后，移州来治，为倚郭县。明洪武七年，省入州。”（《四部丛刊续编》，商务印书馆，1934年，168册）。<br>（3），钦州何时迁治安远县，各书记载不同。《寰宇记》、《九域志》、《宋史?地理志》，均谓钦州治灵山县。《舆地纪胜》钦州下谓，开宝五年徙钦州治保安县，即今安远县。《一统志》谓宋南渡后迁州治安远。《方舆纪要》谓宋徙治灵山县，元治安远县。今据《一统志》结合《舆地纪胜》，作南宋建炎元年钦州自灵山县迁治安远县。<br>（4），《元史》卷63?地理六?湖广等处行中书省?广西两江道宣慰使司都元帅府?钦州路：“元至元十五年置安抚司，十七年改总管府。领县二：安远，灵山。”（中华书局，1976年，5册，1537-1538页）。<br>（5），《明史》45?地理六?广东?廉州府?钦州：“元钦州路，属海北海南道。洪武二年为府。七年十一月降为州。以州治安远县省入。九年四月降为县，来属。十四年五月复为州。领县一：灵山，州北。元属钦州。洪武九年四月属廉州。十四年五月仍属钦州。”（北京，中华书局，1974年，4册，1145页）。</body></html>    ]]>  </source-note>  <source-uri>      </source-uri></placename>