Skip to main content
Question

Update XML

  • February 7, 2025
  • 0 replies
  • 31 views

daniii
Contributor
Forum|alt.badge.img+7

I have this XML that I want to update:

1<?xml version="1.0" encoding="UTF-8"?>
2<batch name="Simple Batch" default="root">
3  <!-- This is the starting task -->
4  <target name="root">
5
6    <openmodel file="c:\\temp\\test.smc"/>
7
8    <updatemodel file="c:\\temp\\test.ifc" with="c:\\temp\\test.ifc"/>
9
10    <savemodel file="c:\\temp\\test.smc"/>
11
12    <exit/>
13  </target>
14</batch>

I want to read other files, for example, test1.ifc and test2.ifc in FME, and I want to add them to the XML to be like this:

1<?xml version="1.0" encoding="UTF-8"?>
2<batch name="Simple Batch" default="root">
3  <!-- This is the starting task -->
4  <target name="root">
5
6    <openmodel file="c:\\temp\\test.smc"/>
7
8    <updatemodel file="c:\\temp\\test.ifc" with="c:\\temp\\test.ifc"/>
9
10    <updatemodel file="c:\\temp\\test1.ifc" with="c:\\temp\\test1.ifc"/>
11
12    <updatemodel file="c:\\temp\\test2.ifc" with="c:\\temp\\test2.ifc"/>
13
14    <savemodel file="c:\\temp\\test.smc"/>
15
16    <exit/>
17  </target>
18</batch>

Any suggestions?

0 replies

Be the first to reply!

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