<?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_42569</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">Lingshan 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>636</begin>    <begin-rule>3</begin-rule>    <end>1911</end>    <end-rule>6</end-rule>  </temporal>  <spatial>    <object-type>POINT</object-type>    <xy-type>point</xy-type>    <latitude-direction>N</latitude-direction>    <degrees-latitude>22.43459</degrees-latitude>    <longitude-direction>E</longitude-direction>    <degrees-longitude>109.28741</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_34145" from="636" to="741" >        <parent-name>钦州</parent-name>        <transcribed-name>Qin Zhou</transcribed-name>      </part-of>      <part-of parent-id="hvd_34146" from="742" to="757" >        <parent-name>宁越郡</parent-name>        <transcribed-name>Ningyue Jun</transcribed-name>      </part-of>      <part-of parent-id="hvd_34028" from="758" to="971" >        <parent-name>钦州</parent-name>        <transcribed-name>Qin Zhou</transcribed-name>      </part-of>      <part-of parent-id="hvd_34029" from="972" 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 parent-id="hvd_33014" from="1374" to="1375" >        <parent-name>钦州</parent-name>        <transcribed-name>Qin Zhou</transcribed-name>      </part-of>      <part-of parent-id="hvd_33019" from="1376" to="1380" >        <parent-name>雷州府</parent-name>        <transcribed-name>Leizhou Fu</transcribed-name>      </part-of>      <part-of parent-id="hvd_33011" from="1381" to="1911" >        <parent-name>廉州府</parent-name>        <transcribed-name>Lianzhou 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>灵山县（636-1911年）治所（张修桂编写）<br><br>唐贞观十年（636年）以南宾县改名，属钦州（1）。治所即今广西灵山县（2）。宋开宝五年（972年）为钦州治（3）。建炎元年（1127年）移州治安远县，县仍属之（4）。元至元十七年（1280年）属钦州路（5）。明洪武二年（1369年）属钦州府，七年（1374年）十一月属廉州府钦州，九年四月属廉州府，十四年（1381年）五月属廉州府钦州（6）。清属廉州府（7）。1912年废府留县（8）。<br><br>————————————————————<br>（1），《旧唐书》卷41?岭南道?钦州：“隋宁越郡。武德四年平萧铣，改为钦州总管府，管一州，领钦江、安京、南宾、遵化、内亭五县。五年置如和县。其年，置玉州、南亭州，并隶钦州，以内亭、遵化二县属亭州。贞观元年，罢都督府。二年废亭州，复以内亭、遵化并来属。十年，省海平县。天宝元年，改为宁越郡。乾元元年，复为钦州也。旧领县七，天宝领县五。”（北京，中华书局，1975年，5册，1746页）。<br>《唐书》卷43上?地理7?钦州宁越郡“灵山，本南宾，贞观十年更名。”（北京，中华书局，1975年，4册，1103页）。按：《元和志》作天宝元年改为灵山县。今据《唐书》作贞观十年迁治时更名。<br>（2），《元和郡县图志》卷38?岭南道?钦州?钦江县：“郭下。丰子岭，在县北一百二十里。”灵山县：“南至州九十六里。隋开皇十八年，于州北四十八里置南宾县，贞观十年移于峰子岭南，天宝元年改为灵山县。今南四十里谓之水步，即是钦州北来人，泝流舍舟登陆处。”（北京，中华书局，下册，953页）。<br>《舆地纪胜》卷120?广南西路?钦州?景物上：“西灵山，在州北一百余里。唐贞观十年移灵山县治于此。”（北京，中华书局，1992年，4册，3486页）。<br>《嘉庆一统志》卷450?廉州府?山川：西灵山“在灵山县北，一名丰子岭。丰子即峰子也。”（《四部丛刊续编》，商务印书馆，1934年，168册）。<br>宣统元年《广东地舆全图》灵山县图：峰子岭在灵山县治西北侧。（台湾，成文出版社《中国方志丛书》第108号）。<br>据此，贞观十年迁治更名的灵山县治所，当即今广西灵山县治。<br>（3），《太平寰宇记》卷167?钦州?灵山县：“汉合浦县地，旧在州北六十六里。今为州理所。”（金陵书局，光绪八年刊本，30册）。<br>《舆地广记》卷37?广南西路下?灵山县：“本汉合浦县地。隋开皇十八年置南宾县。唐贞观十年更名。后自钦江徙州治此，开皇五年省钦江、遵化、内亭三县入焉。”（商务印书馆，1937年，5册）。<br>《宋史》卷90?地理六?广南西路?钦州，宁越郡：“开宝五年，废遵化、钦江、内亭三县。天圣元年，徙州南宾寨。县二：灵山；安远。”（北京，中华书局，1977年，7册，2245页）。<br>按：唐代钦州治钦江县，何时迁治灵山县，以上史料记载各异。据《寰宇记》、《舆地广记》，迁治当在宋太平兴国五年以前，今作宋开宝五年，废钦江、遵化、内亭三县时，治所即自钦江迁于灵山县。《宋史》作“天圣元年，徙州南宾寨”、《舆地纪胜》引《新宁越志》作“开宝五年徙州治于保安县，即今安远县”，不从。<br>（4），《宋史》钦州治灵山，《舆地纪胜》钦州治安远。故《嘉庆一统志》作南宋自灵山移治安远。今姑作建炎元年迁治。<br>（5），《元史》卷63?地理六?湖广等处行中书省?广西两江道宣慰使司都元帅府?钦州路：“元至元十五年置安抚司，十七年改总管府。领县二：安远，灵山。”（中华书局，1976年，5册，1537-1538页）。<br>（6），《明史》45?地理六?广东?廉州府?钦州：“元钦州路，属海北海南道。洪武二年为府。七年十一月降为州。以州治安远县省入。九年四月降为县，来属。十四年五月复为州。领县一：灵山，州北。元属钦州。洪武九年四月属廉州。十四年五月仍属钦州。”（北京，中华书局，1974年，4册，1145页）。<br>（7），《嘉庆一统志》卷450?廉州府?灵山县：“明洪武十四年属廉州府，本朝因之。”（《四部丛刊续编》，商务印书馆，1934年，168册）。<br>（8），《中华民国行政区划简表》11?广东省：合浦县“旧廉州府附郭首县，民国元年裁府留县。”有灵山县。（内政部编，商务印书馆，1947年，79页）。</body></html>    ]]>  </source-note>  <source-uri>      </source-uri></placename>