Skip to main content
Question

XMLUpdater - Changing values from a drop down menu

  • October 23, 2018
  • 2 replies
  • 46 views

Hello to the lovely FME community

I am fairly new to the FME world and am currently working in a small project to update the metadata of a feature class using the XMLUpdater. The process is working fine except for when I am trying to update the XML values of a drop down menu. For example If you go to the Item Description of the feature class and go to "Overview" --> "Citation Contacts" I am trying to change the "Role" from Distributor to Publisher like this:

After some trial and error I found that the XML tag for this particular field is:

As you can see "value = 011" is inside the tag and I tried different options within the XMLUpdater but it seems you are only able to replace whats after or before the tag(RoleCd value="011"), not what is inside (in need to change the number 011 to 010). I think It is not something I can replace using XMLUpdater (at least to my knowledge) so I was wondering If somebody could provide some feedback and point me in the right direction.

Thanks in advance.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

takashi
Celebrity
  • October 23, 2018

Hi @semolina0124, you can specify an XML attribute node with XPath by adding the prefix '@' to the attribute name, as in:

//idCitation/citRespParty/role/RoleCd/@value

0684Q00000ArKYyQAN.png


Hi @semolina0124, you can specify an XML attribute node with XPath by adding the prefix '@' to the attribute name, as in:

//idCitation/citRespParty/role/RoleCd/@value

0684Q00000ArKYyQAN.png

It works !!!! Thanks so very much takashi !