1) I tried mapping :
SET OutputRoot.XML.Output_Root_Tag.Out_Child_Tag.Out_Identifier = InputRoot.XML.Input_Root_Tag.Child_Tag.(XML.Attribute)Identifier;
I get output
<Output_Root_Tag>
<Out_Child_Tag Out_Identifier = "100" \>
</Output_Root_Tag>
2) When I tried mapping:
SET OutputRoot.XML.Output_Root_Tag.Out_Child_Tag.(XML.Element)Out_Identifier = InputRoot.XML.Input_Root_Tag.Child_Tag.(XML.Attribute)Identifier;
I get output
<Output_Root_Tag>
<Out_Child_Tag>
<Out_Identifier/>
</Out_Child_Tag>
</Output_Root_Tag>
dev,
in my previous project I ran into similar problem, while mapping XML attribute with an Element. I think error may be due to the XML parsing and trying to assign Element to an attribute.
One of the way to solve it, make use of temp variable to assign the value. It may not be the best ... but works perfect.
Code:
declare X char;
set X = InputRoot.XML.Input_Root_Tag.Child_Tag.(XML.Attribute)Identifier ;
SET OutputRoot.XML.Output_Root_Tag.Out_Child_Tag.Out_Identifier = X;
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum