Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

xml simple transformation

dmi
Participant
0 Likes
703

Hello

I have to read an xml file and transform it.

I've created a simple transformation and it works fine.

Now I get the problem, the xml file looks not always the same,

some nodes exists sometimes, somethimes not.

If a node is missing, my simple transformation fails with the message "Node xx expected"

Is there a way to solve this problem?

Thanks in advance

Daniel

1 ACCEPTED SOLUTION
Read only

retired_member
Product and Topic Expert
Product and Topic Expert
0 Likes
637

Hi,

Can you consider to use conditionals, e.g. assertions?

An assertion can be used to assign a value to a data node without the node being filled by the inbound stream.


Horst

2 REPLIES 2
Read only

retired_member
Product and Topic Expert
Product and Topic Expert
0 Likes
638

Hi,

Can you consider to use conditionals, e.g. assertions?

An assertion can be used to assign a value to a data node without the node being filled by the inbound stream.


Horst

Read only

0 Likes
637

Hi Horst

Thanks for your help, now it works.

<tt:d-cond> in front of the node who can be missing

Best regard

Daniel