Skip to main content
Archived

XMLUpdater Usability Improvement #2

Related products:FME Form
martin_ekstrand
siennaatsafe
nathanatsafe
+58
  • tanguyg
  • martin_ekstrand
    martin_ekstrand
  • hollyatsafe
  • siennaatsafe
    siennaatsafe
  • nathanatsafe
    nathanatsafe
  • fmelizard
    fmelizard
  • david_r
    david_r
  • ebygomm
    ebygomm
  • redgeographics
    redgeographics
  • danilo_fme
    danilo_fme
  • erik_jan
    erik_jan
  • sigtill
    sigtill
  • tcrossman
    tcrossman
  • vxn43
    vxn43
  • bruceharold
    bruceharold
  • jelle
    jelle
  • kennyo
    kennyo
  • chriswilson
    chriswilson
  • lazarlubomir
    lazarlubomir
  • srg
    srg
  • aquamarine
  • olivier
    olivier
  • charry
    charry
  • koenterralytics
    koenterralytics
  • gbj1717
    gbj1717
  • mikael_sweco
    mikael_sweco
  • andrej
    andrej
  • marko
  • rhartley
  • bou.spiering
  • mrtihon
  • pratsch
    pratsch
  • r5
    r5
  • t_hohenstrater
    t_hohenstrater
  • vn1
    vn1
  • cwarren
    cwarren
  • jiranek_hsro
    jiranek_hsro
  • hsamor
    hsamor
  • kkrajewski
  • endest
    endest
  • gtihon
  • alexvsn
  • ekkischeffler
    ekkischeffler
  • geogaard
    geogaard
  • gabriel_hirsch
    gabriel_hirsch
  • zzupljanin
    zzupljanin
  • anari
    anari
  • venu
    venu
  • setld_solutions
    setld_solutions
  • bmdull
  • hansh
    hansh
  • kino
  • soeren
    soeren
  • iamjameselliott
  • t4
  • mikmansson
  • jeroenpeters
    jeroenpeters
  • asmundhg
  • mikis
  • sichenbim
  • arenscott
    arenscott
  • marius.hansen
    marius.hansen
  • moosi
    moosi

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 a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings