Hello,
I have to update DATE value in XML file and I use XMLUpdater transformer. It works perfect if it is only one date value.
I have problems updating date field for coleListValue="publication" in the situation that shows the following example:
<CI_Citation>
<date>
<CI_Date>
<date><gco:Date>2006-07-01</gco:Date></date>
<dateType<CI_DateTypeCode codeList="myCodelists.xml" codeListValue="creation"/></dateType>
</CI_Date>
</date>
<date>
<CI_Date>
<date><gco:Date>2014-07-11</gco:Date></date>
<dateType><CI_DateTypeCode codeList="myCodelists.xml" codeListValue="revision"/></dateType>
</CI_Date>
</date>
<date>
<CI_Date>
<date><gco:Date>2016-03-17</gco:Date></date>
<dateType><CI_DateTypeCode codeList="myCodelists.xml" codeListValue="revision"/></dateType>
</CI_Date>
</date>
<date>
<CI_Date>
<date><gco:Date>2020-01-22</gco:Date></date>
<dateType><CI_DateTypeCode codeList="myCodelists.xml" codeListValue="publication"/></dateType>
</CI_Date>
</date>
</CI_Citation>
I have checked information at [1] and I have tried some solutions like [2] but nothing works, could you give some advice?
[1] http://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/xmlupdater.htm
[2] XML path = /MD_DataIdentification id="ID0003"/citation/CI_Citation/date/CI_Date/datetype/CI_DateTypeCode[@codeListValue="publication"]/gco:Date
Best answer by debbiatsafe
View original