on 08-31-2009 11:58 AM
Hello friends
I need to remove the XML tags that the PI puts the message to perform an http post to a particular URL.
How do I edit the XML tags added by PI?
Thanks friends.
Hi,
There is two ways to resolve your issue
1) Write simple Java map to remove name space.
2)Instead of creating Data type ,create as External Definition for receiver .
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is one example how to remove name space
My incoming message structure like this
InputStructure:
<?xml version="1.0" encoding="utf-8" ?>
<ns:MT_RQRajFile_out xmlns:ns="urn:SCP:O01:NRQ:EnterpriseNetReq">
<Records>
<Record>
<Field>RAJASEKHAR123456</Field>
</Record>
</Records>
</ns:MT_RAJFile_out>
I want out put as
RAJASEKHAR123456
WITHOUT NAME SPACE, for this i have written simple XSLT code to remove name space
XSLT Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text"/>
<xsl:template match="/*">
<xsl:value-of select="Filed"/>
</xsl:template>
</xsl:stylesheet>
Regards,
Raj
Raj
My message is this: <Itau_Req_PgtoForn> H4sIAAAAAAAAAH1SXWvCMBT9K9J3m7QojBIjnXQfsO1BO99jGjXQ5HZJqv78XWc7tIghkOTcc +85
B8LmJ1OPDsp5DXYWJTGNRspKqLTdzaLv8mX8FM0502GXGWW92CmzqLWyQY2w0foMK7NoH0LjM0KO
x + kk1kG0sQQTbxwZ9EScSbFRUtR7wKEVYnqrpajAdQye9IuRu3VWiSDewIml + mm1xyLwlNLJmE7H
aVImaUYpbkbu8G4VP2 +9 cYprqDrksKAbWEGtJaY8jzx3DDFGrkJKcA0ewQnrjfZeQO7Q0AGufQmz
ucwvi1VZMPL/Zo2Dqg2okzLS35m4TOBsC84IRBZf + XM6wdA98OezE + LL4nWdL9/zdfFxMdsX0ByK
tBWU6oRNnfgtiGZ6NnkcgnRRyZ3Pwn8BXE1wMGgCAAA = </ Itau_Req_PgtoForn>
I need to delete the "<Itau_Req_PgtoForn>" and "</ Itau_Req_PgtoForn>" and keep only "H4sIAAAAAAAAAH1SXWvCMBT9K9J3m7QojBIjnXQfsO1BO99jGjXQ5HZJqv78XWc7tIghkOTcc +85
B8LmJ1OPDsp5DXYWJTGNRspKqLTdzaLv8mX8FM0502GXGWW92CmzqLWyQY2w0foMK7NoH0LjM0KO
x + kk1kG0sQQTbxwZ9EScSbFRUtR7wKEVYnqrpajAdQye9IuRu3VWiSDewIml + mm1xyLwlNLJmE7H
aVImaUYpbkbu8G4VP2 +9 cYprqDrksKAbWEGtJaY8jzx3DDFGrkJKcA0ewQnrjfZeQO7Q0AGufQmz
ucwvi1VZMPL/Zo2Dqg2okzLS35m4TOBsC84IRBZf + XM6wdA98OezE + LL4nWdL9/zdfFxMdsX0ByK
tBWU6oRNnfgtiGZ6NnkcgnRRyZ3Pwn8BXE1wMGgCAAA = "
Is it possible?
When I run the above XSLT, I do not return any results. = /
Thank you.
Hi,
Sorry It was my fault
Try with this:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:value-of select="Itau_Req_PgtoForn"/>
</xsl:template>
</xsl:stylesheet>
If you see, you should use "<xsl:template match="/">" instead of "<xsl:template match="/*">".
Regards
Ivan
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.