cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping : createif

Former Member
0 Kudos

Hi,

I want to use createif for node creation.

But the thing is i want to compare two constant lets say i put two constants.

And i do a string comparison and the result is passed to createif.

I am getting an error not able to produce valid xml instance.

But if i take value from source node then i dont have problem passing it.

I am able to do createif.

Please advice

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member187563
Contributor
0 Kudos

hi,

can you make yourself more clear

regards

Former Member
0 Kudos

the requirement is simple

two constants that is from standard functions

i am comparing it with equalsS and the result is passed to creatif.

ideally if both constants are true then the resulting node is created.

But here it is telling no valid xml source and target

former_member181962
Active Contributor
0 Kudos

Hi,

Probably, you cannot compare two constants using EQUALSS function, rightly so. There is no point in comparing two constants because you know their values already.

Regards,

Ravi Kanth Talagana

Former Member
0 Kudos

Ravi kanth,

This information i have.

I am trying to simulate a scenario with global containers..

I got the solution .. I made it happen in a different way.

former_member187563
Contributor
0 Kudos

hi,

IF your both the constants are equal then your create if function will work properly.And the node will be created.

But if they are not equal then it will tell no valid xml source and target

so you make that node 0:unbounded,that will solve the problem.

regards,

ujjwal kumar

Former Member
0 Kudos

Hey,

So you are checikng whether those 2 contants are equal and if that is true you want to create the node.

then...

have you taken equals from text functions...i don't think equals boolean functions work..

Thanks,

Vijaya,