on 09-08-2009 9:53 AM
we are sending XML file through PI. In the file format there was need to add xmlns attribute to root element. Also file we are using is of mxml type. So, target namespace was added in xsd. But with this change, every element is having tag "<ns0:". Can anybody tell me the solution to remove this tag?
Hi,
the "element" is a prefix. You can remove it with [XMLAnonymizerBean|/people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean].
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Udo for your reply.
I am using XML Anonymizer. I have done all the settings as per Blog
/people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean
There are no errors. But the prefix of namespace "ns0" is not getting removed. Any help is appreciated
HI Akshya,
The XML Anonymizer bean always works for removing namespace prefix . You just have to take care that ::
1 XMLAnonumizer bean should be the first module in module list in Receiver Adpter.
2. In Accept Namespace row in the value tab Mention the name of the namespace you want to come then Give one space and then enter two single quotes without any space .(BY mistake we forgot to give space or we mention double coat instead of single coat ) .
I think if you will take this care then as mentioned in that blog it will work Last but not the least use the parameter key also as mentioned in the blog .
Regards,
Saurabh
Target namespace cant be removed. The xmlns attribite is required for receiver system.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Remove the Namespace in the XML namespace in Message Type
Regards,
Jude
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.