<?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_44462</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">Yong'an Jun</transcription>      <exonym-lang></exonym-lang>      <attested-by></attested-by>      <note></note>    </spelling>  </spellings>  <feature-type>    <name>军</name>    <alternate-name>軍</alternate-name>    <transcription>jun</transcription>    <translation lang="en">military prefecture</translation>  </feature-type>  <temporal>    <begin>966</begin>    <begin-rule>4</begin-rule>    <end>977</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>31.01439</degrees-latitude>    <longitude-direction>E</longitude-direction>    <degrees-longitude>103.62142</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-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[      永安军（966—977年）<br><br>宋乾德四年（966年）改镇静军为永安军，领导江、青城二县。①故治即今四川灌县治。②太平兴国三年（978年）改永安军为永康军。③<br><br>注：<br>①《太平寰宇记》卷73：“永康军，今理灌口镇。本彭州导江县灌口镇地。唐贞观十年立为镇静军，管四乡。皇朝乾德三年平蜀。四年改为永安军，仍割蜀州之青城、彭州之导江二县隶焉。太平兴国三年改为永康军。领县二：导江、青城。”（光绪金陵书局本）《宋史》卷89《地理志五》：“永康军，同下州。本彭州导江县灌口镇。唐置镇静军。乾德四年改为永安军，以蜀州之青城及导江县来隶。太平兴国三年改为永康军。熙宁五年废为砦；九年复即导江县治置永康军使，隶彭州。元祐初复故。县二：导江，望。乾德中，自彭州来隶。熙宁五年军废，复隶彭州，后复于此置军。有博马场。青城。望。乾德中，自蜀州来隶。熙宁五年军废，还隶蜀州，不知何年复来隶。”（第7册，2215页）<br>②《清嘉庆一统志》第141册卷385《成都府二·古迹》：“灌州故城，今灌县治。本古灌口镇。唐置镇静军。宋改永康军。元改军为灌州。明降州为县。《元和志》：灌口镇在导江县西二十六里。后魏置。……《寰宇记》：灌口镇，本导江县地。唐贞观十年立为镇静军。宋乾德三年平蜀，四年改为永康军，割蜀郡之青城、彭州之导江二县隶焉。太平兴国三年改曰永康军。东北至九陇县一百十五里，西北至汶川县二百十六里。”即今四川灌县治。<br>③见①。    ]]>  </source-note>  <source-uri>      </source-uri></placename>