Informatica Powercenter:如何对 XML 文档运行 XSLT 转换
我有一个复杂的 XML 文档,informatica XML 解析器很难对其进行“规范化”,如何在将其发送到 XML 解析器之前运行 XSLT 等 XML 转换来简化它。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实现此目的的一种方法是使用标准 Java 转换并使用标准
javax.xml.transform
API 执行转换。为此,请在流程中添加 Java 转换
在
Import Packages
窗格中,导入所需的java包在
Helper Code
窗格中我们构建了一个变压器目的。据我了解,非静态字段是每个实例创建的,因此应该不存在并发问题。 (评论?)我们通过在转换器对象上执行transform方法来对传入的xml文档执行转换。
One way of doing this is to use the standard Java transform and use the standard
javax.xml.transform
API to perform the transformation.To do this add a Java Transform to your flow
In the
Import Packages
pane, import the required java packagesIn the
Helper Code
pane 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.