on 12-01-2011 4:33 AM
HI Experts,
i am doing one scenario file to file . in soruce payload i have <?xml version="1.0" encoding="UTF-8"?> . i want to remove <?xml version="1.0" encoding="UTF-8"?> at target side. is it possible .
regards,
alekhya.
Hi.
You can use JavaMapping for this.
in you method to transform you can add this line
....
idTransform.setOutputProperty (OutputKeys.OMIT_XML_DECLARATION,"yes");
.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<REMOVED BY MODERATOR> <NO NEW INFORMATION, JUST COPY PASTE OF PREVIOUS REPLIES>
Edited by: Prateek Raj Srivastava on Dec 5, 2011 10:17 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
i want to remove <?xml version="1.0" encoding="UTF-8"?> at target side. is it possible .
You can use XSLT and add
<xsl:output method="text" version="1.0" encoding="UTF-8" omit-xml-declaration="yes"/>
in your output declaration
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
yes its possible with java mapping,
use a java mapping and replace the <?xml version="1.0" encoding="UTF-8"?> with and empty string
regards,
ganesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.