<?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_95374</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">Shangai 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>-241</begin>    <begin-rule>4</begin-rule>    <end>447</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>37.80204</degrees-latitude>    <longitude-direction>E</longitude-direction>    <degrees-longitude>113.62227</degrees-longitude>    <geo-source>FROM_AC</geo-source>    <present-location>    </present-location>  </spatial>  <historical-context>    <part-of-relationships>      <part-of parent-id="hvd_112280" from="-241" to="-196" >        <parent-name>太原郡</parent-name>        <transcribed-name>Taiyuan Jun</transcribed-name>      </part-of>      <part-of parent-id="hvd_112280" from="-195" to="36" >        <parent-name>太原郡</parent-name>        <transcribed-name>Taiyuan Jun</transcribed-name>      </part-of>      <part-of parent-id="hvd_115093" from="37" to="214" >        <parent-name>常山国</parent-name>        <transcribed-name>Changshan Guo</transcribed-name>      </part-of>      <part-of parent-id="hvd_115527" from="215" to="447" >        <parent-name>乐平郡</parent-name>        <transcribed-name>Leping Jun</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[      上艾县（前241～447年）治所 编写者：王尚义、王杰瑜

秦庄襄王三年（前241年）设置，属太原郡，西汉因之①。治所在今平定县新城村②。东汉建武十三年（37年）属常山国③。建安二十年（215年）属乐平郡。西晋因之④。北魏太平真君九年（448年）废⑤。

注：
①《史记》卷五《秦本纪》第五
秦庄襄王三年“王龁攻上党郡，初置太原郡。”
（中华书局P219，1959年）
《史记》卷六《秦始皇本纪》第六
始皇“年十三岁，庄襄王死，政代立为秦王。当是之时，秦地已并巴、蜀、汉中，越宛有郢，置南郡矣；北收上郡以东，有河东、太原、上党郡。”
按：上艾为战国古城，近年出土三孔布“上艾”已证实它为先秦赵邑，为此，确定为秦县，并将其置县年代与秦置太原郡定为同一年。
《汉书》卷二十八上《志》第八上?地理上
　  太原郡，“秦置。有盐官，在晋阳。属并州。”县二十一：晋阳、葰人、榆次、中都、兹氏、狼孟、邬、盂、平陶、汾阳、京陵、原平、祁、上艾、虑虒、阳邑、广武。
（中华书局P1551～1552，1962年）
②《水经注疏》卷十?浊漳水
“绵蔓水上承桃水，水出乐平郡之上艾县。”
守敬按：前汉县属太原郡，后汉属常山国，魏、晋属乐平郡，后魏曰石艾，仍属乐平郡，在今平定州东南三十里。
（中华书局P974～975，1999年。）
光绪《山西通志》卷五十四《古迹考》
上艾，在平定州。《平定州志》：“在州南三十里，即汉上艾县治，后魏为石艾县，废址犹存。今为宁艾都新城村。”
（中华书局P3881，1990年。）
按：上文“宁艾都新城村”，即今平定县张庄乡新城村，历为上艾、石艾、广阳等县治所在地，今仍存城墙、城门遗址。
③《后汉书志》第二十《郡国二》
常山国，“高帝置。建武十三年省真定国，以其县属。”十三城：元氏、高邑故鄗，光武更名。刺史治。有千秋亭、五成陌，光武即位于此矣。都乡侯国。有铁。 南行唐，有石臼谷、房子，赞皇山，济水所出、平棘有塞。栾城、九门、灵寿，卫水出。蒲吾、井陉、真定、上艾故属太原。
（中华书局P3433～3434，1962年。）
④《晋书》卷十四《志》第四?地理上?并州
并州“建安十八年，省入冀州。二十年，始集塞下荒地立新兴郡，后又分上党立乐平郡。”
乐平郡，“泰始中置。”统县五：沾、上艾、寿阳、轑阳、乐平。
（中华书局P428，1974年。）
按：《晋书?地理上》云：乐平郡领沾、上艾、寿阳、镣阳、乐平五县，由此推定东汉建安二十年（215年）初置乐平郡时，上艾县已从常山国划入乐平郡。
⑤《魏书》卷一百六上《地形志二上》第五?并州
乐平郡，“后汉献帝置，真君九年治太原，孝昌二年复，治沾城。”领县三：辽阳、乐平、石艾。
石艾，“前汉属太原，后罢，晋属。真君九年罢，孝昌六年复故名上艾，后改。”
按：“前汉属太原后罢”温校：“按《郡国志二》：上艾属常山国，未尝废也。”
（中华书局P2468，1974年。）
徐文范《东晋南北朝舆地表》
魏太平真君九年，“省太原榆次入晋阳，又省上艾县。”
（《二十五史补编》第五册P6799，中华书局，1998年。）    ]]>  </source-note>  <source-uri>      </source-uri></placename>