cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent Please - How avoid namespace tag in XML Content

Former Member
0 Kudos

Hi XI Experts,

<?xml version="1.0" encoding="UTF-8"?>

<b><ns0:AAA xmlns:ns0="http://Abc.com"></b>

<DocHeader><ClientID>ABC</ClientID><ClientDocID>null</ClientDocID><UserID>PurchaseOrder</UserID></DocHeader><Request Type="PO" action="insert"><ClientReference>PO-0099000099</ClientReference><DeliveryDate>20071025</DeliveryDate><Vendor>5104</Vendor><OrderLine><ExpectQTY>1.000</ExpectQTY></OrderLine></Request>

<b></ns0:AAA></b>

Please tell me how to avoid the xml content which is in <b>Bold</b>?

Thank X in Advance......

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

I think you can do it. Remove it from your message type "<b>XML Namespace</b>"

and it will work.

Regards,

Sarvesh

Shabarish_Nair
Active Contributor
0 Kudos

There are two approaches;

1. Bean - /people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean

2. From MT - /people/sameer.shadab/blog/2005/12/05/how-to-remove-namespaces-in-mapping--xi

Former Member
0 Kudos

Hi,

for removing namespace from ur XML content,remove the namespace from field XML namespace while defining message type.

Refer:

/people/sameer.shadab/blog/2005/12/05/how-to-remove-namespaces-in-mapping--xi

and for removing </ns0:AAA> u can use XMLAnonymizerBean in modules.

refer:

/people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean

Regards,

Anoop

nisarkhan_n
Active Contributor
0 Kudos

i dnt thkn you can abvoid that from payload...can you give more inputs on why you wna to remove namesapce....