<?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_95088</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">Jincheng 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>621</begin>    <begin-rule>4</begin-rule>    <end>877</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>39.56155</degrees-latitude>    <longitude-direction>E</longitude-direction>    <degrees-longitude>113.24369</degrees-longitude>    <geo-source>95089</geo-source>    <present-location>    </present-location>  </spatial>  <historical-context>    <part-of-relationships>      <part-of parent-id="hvd_34420" from="621" to="624" >        <parent-name>应州</parent-name>        <transcribed-name>Ying Zhou</transcribed-name>      </part-of>      <part-of parent-id="hvd_99415" from="621" to="628" >        <parent-name>应州</parent-name>        <transcribed-name>Ying Zhou</transcribed-name>      </part-of>      <part-of parent-id="hvd_99415" from="625" to="877" >        <parent-name>应州</parent-name>        <transcribed-name>Ying Zhou</transcribed-name>      </part-of>      <part-of parent-id="hvd_99415" from="629" to="877" >        <parent-name>应州</parent-name>        <transcribed-name>Ying Zhou</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[      金城县（621～877年）治所。编写者：王尚义、王杰瑜

唐武德四年（621年）置，属应州①，为应州治，在今朔州市应县镇子梁乡城下庄村②。乾符五年，迁移至今应县县城③。

注：
①《辽史》卷四十一《志》第十一?地理志五?西京道 应州，彰国军，上，节度。“唐武德中置金城县，后改应州”。统县三。金城县。本汉阴馆县地，汉末废为阴馆城。隋大业末陷突厥。唐始置金城县，辽因之。（中华书局P513，1974年。）
乾隆《大同府志》卷一《沿革》应州，“唐置金城县，后改应州（此应州得名之始，明《一统志》以龙首、雁门二山南北相应故名）  按《辽史?地理志》：金城县，唐武德中置，后改应州，顾新旧唐书皆不载，诚如州续志所言，元地理志亦因唐书无考，仅据五代史沙陀事迹多在应州，误以为唐末置耳，当从辽志。”（大同市方志办整理重印P39，2007年。）
按：史载武德中置金城县，今按标准化原则，确定为武德四年（621年）。
②③雍正《山西通志》卷五十八《古迹》二?大同府?应州 金城故县，“在州城内。《辽志》：金城，本汉阴馆县地，汉末废为阴馆城。大业末陷突厥。唐始置金城县，为州治，辽因之。明永乐间尝掘得金城县印。今为儒学。”
乾隆《大同府志》卷之六《古迹》?应州 金城废县 ，“在州城内，唐置县为州治，辽金元皆因之，明初省入州，改县治为安东卫治。永乐间尝掘地得金城县印。” （大同市方志办整理重印P116，2007年。）
按：历史上，金城县治究竟在何？据雍正《山西通志》、乾隆《大同府志》的记载，金城县城即今应县县城，未有迁移。然光绪《山西通志》则云：应州，“唐云州地，后置金城县，立应州治之。” 雍正《山西通志》也云：金城故县，“唐始置金城县，为州治。”唐代的金城县治唐的应州治，而清代金城废县也在 “州城内”，因此，金城县一直是应州州治。应州治在唐乾符五年（878年）时向西迁移，金城县治相应迁移才是。故《读史方舆纪要》中，顾氏云：金城废县，“今州治。本名金凤城，后唐明宗生于此，因置金城县，为州治。或曰旧城在今治东十里，李克用迁金城于天王村，即今治也。”故确定唐代金城县治，即在今应县东镇子梁乡城下庄村。
③光绪《山西通志》卷二十八《府州厅县考六》?大同府 应州。州城：“唐初名金城。乾符间，晋王李克用父为大同节度使，移筑天王村，距古城八里，明洪武八年，再徙今治。”（中华书局P2490，1990年。）
顺治《云中郡志》卷三《城池》 应州城：唐天宝初，节度使王忠嗣创建。李克用父子世居之。至乾符间，克用父为大同节度使，因古城废塌，移筑天王村，距旧城八里余。明洪武八年，知州陈立诚以旧城西北三面多旷地，遂就东南城墙改筑。（大同市方志办整理重印P70，1988年。）
《旧五代史》卷二十五《唐书一》?武皇纪上 　　太祖武皇帝，讳克用，本姓朱耶氏，其先陇右金城人也。“乾符五年，黄巢渡江，其势滋蔓，天子乃悟其事，以武皇为大同军节度使、检校工部尚书。”
按：史志皆云，应州城，在乾符间，克用父为大同节度使时移筑天王村。今据《旧五代史》载，时为乾符五年（878年）之事，故确定迁移于是年。    ]]>  </source-note>  <source-uri>      </source-uri></placename>