Hi,
We have a requirement to transform from a source xml to terget xml. The scenario is, the source xml has a leaf node and few nodes. If the value in the leaf is False I shouldnot generate the nodes under the parent node.
Example:
Source XML
<Student>
<
AssignedCourse>False</AssignedCourse>
<CourseDetails>
<CourseName>JAVA</CourseName>
<CourseID>1</CourseID>
</CourseDetails>
</Student>
Desired output:
If AssignedCourse is False I want to generate the following XML,
<Student>
<
AssignedCourse>False</AssignedCourse>
</Student>
I could not achieve the above with the help of Reject or Discard functions as they generate the following output which is not desired,
<Student>
<
AssignedCourse>False</AssignedCourse> </CourseDetails>
</Student>
Appreciate your help
Regards
Karthik