Hi;
The default BOXMLSerializer writes XML with spaces and tabs; to remove tabs/spaces you can use below code.
BOXMLSerializer bos = (BOXMLSerializer) ServiceManager.INSTANCE.locateService
("com/ibm/websphere/bo/BOXMLSerializer");
Map options = new HashMap(); options.put
(XMLResource.OPTION_FORMATTED, Boolean.FALSE);
bos.writeDataObjectWithOptions(dataObject, targetNamespace, element, options);
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment