on 11-21-2007 5:12 AM
Hi EveryBody,
I have a file to file scenario in which i am using XSDs for both source and target.
Below is my target payload generated:
?xml version="1.0" encoding="UTF-8"?>
<ns0:Business xmlns:ns0="http://www.xyz.com/schemas">
<ns0:Header>
<ns0:SH1>
<ns0:Ck>345</ns0:Ck>
<ns0:Sa>MDM</ns0:Sa>
<ns0:T>20070924100953</ns0:T>
</ns0:SH1>
<ns0:SH2>
<ns0:FI>606</ns0:FI>
<ns0:FN>YYZ</ns0:FN>
</ns0:SH2>
</ns0:Header>
</ns0:Business>
The required Payload is :
?xml version="1.0" encoding="UTF-8"?>
<Business xmlns="http://www.xyz.com/schemas">
<Header>
<SH1>
<Ck>345</Ck>
<Sa>MDM</Sa>
<T>20070924100953</T>
</SH1>
<SH2>
<FI>606</FI>
<FN>YYZ</FN>
</SH2>
</Header>
</Business>
When we observe the above payloads we see namespace prefix <b>ns0:</b> is appearing in the first payload.Can anybody help me to remove <b>ns0:</b> from the payload.
Regards,
Zabiulla
try these methods;
Remove namespace prefix
the XMLAnonymizerBean - /people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean
From MT -
/people/sameer.shadab/blog/2005/12/05/how-to-remove-namespaces-in-mapping--xi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Both XML representations are the same, so you need not do anything special.
The receiver should be able to accept both.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.