Skip to main content
Archived

XMLUpdater Usability Improvement #2

Related products:FME Form
  • November 30, 2016
  • 0 replies
  • 14 views

Forum|alt.badge.img

The 'Update Type' etc. required in the XMLUpdater is different depending on whether the XML tag already exists or not ('Replace Contents' or 'Insert' respectively). This makes it very awkward to deal with XML of unknown completeness.

There should be a way to create a tag , including all the hierarchy above it, if the tag doesn't exist and just 'Replace Contents' if the tag does already exist.

e.g.

Update TypeXML PathValue TypeValue
Insert or Replace Contents/metadata/dataIdInfo/idCitation/date/reviseDateXML/XQueryfme:get-attribute("_timestamp")

...should generate...

<metadataxml:lang="en">    <dataIdInfo>       <idCitation>          <date>             <reviseDate>20161116</reviseDate>          </date>       </idCitation>    </dataIdInfo> </metadata> 

...whether the starting document was


<metadataxml:lang="en"> </metadata>

or

<metadataxml:lang="en">   <dataIdInfo>      <idCitation>         <date>            <reviseDate>Yesterday</reviseDate>         </date>      </idCitation>   </dataIdInfo> </metadata>

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.