14 years ago
Preserving Space
Hi,
I just want to know how to perform XML processor settings.
Basically if you look below which shows the raw format of the response having an element test having leading and trailing spaces present:
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"><SOAP-ENV:Body><ns0:root xmlns:ns0="http://www.tibco.com/schemas/bw1/process definitions/Schema.xsd"><ns0:test> ertyu </ns0:test></ns0:root></SOAP-ENV:Body></SOAP-ENV:Envelope>
But in xml format those spaces are removes as shown below:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope">
<SOAP-ENV:Body>
<ns0:root xmlns:ns0="http://www.tibco.com/schemas/bw1/process definitions/Schema.xsd">
<ns0:test>ertyu</ns0:test>
</ns0:root>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
So what is the best way to preserve those spaces can i preserve those spaces
Note:My schema element has whiteSpace="preserve" enabled
I just want to know how to perform XML processor settings.
Basically if you look below which shows the raw format of the response having an element test having leading and trailing spaces present:
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"><SOAP-ENV:Body><ns0:root xmlns:ns0="http://www.tibco.com/schemas/bw1/process definitions/Schema.xsd"><ns0:test> ertyu </ns0:test></ns0:root></SOAP-ENV:Body></SOAP-ENV:Envelope>
But in xml format those spaces are removes as shown below:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope">
<SOAP-ENV:Body>
<ns0:root xmlns:ns0="http://www.tibco.com/schemas/bw1/process definitions/Schema.xsd">
<ns0:test>ertyu</ns0:test>
</ns0:root>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
So what is the best way to preserve those spaces can i preserve those spaces
Note:My schema element has whiteSpace="preserve" enabled