I have a complex XML document that the informatica XML parser struggles with “normalizing”, how can I run a XML transformation such as XSLT to simplfy it prior to sending it into the XML parser.
I have a complex XML document that the informatica XML parser struggles with normalizing,
Share
One way of doing this is to use the standard Java transform and use the standard
javax.xml.transformAPI to perform the transformation.To do this add a Java Transform to your flow
In the
Import Packagespane, import the required java packagesIn the
Helper Codepane we construct a transformer object. As I understand non static fields are created per instance, so there should be no concurrency issues. (comments?)Finally we execute the transform on the incoming xml document by executing the transform method on the transformer object.