Questa interfaccia fornisce il meccanismo per la serializzazione e la deserializzazione di un documento XML.
Questa interfaccia viene utilizzata per serializzare e deserializzare un Grafico business o gli oggetti business.
Di seguito viene riportato un esempio dell'interfaccia BOXMLSerializer.
BOFactory factoryService = BOFactory) new ServiceManager().locateService("com/ibm/websphere/bo/BOFactory"); BOXMLSerializer xmlSerializerService =`(BOXMLSerializer) new ServiceManager().locateService("com/ibm/websphere/bo/BOXMLSerializer"); // Creare il grafico dell'oggetto business. DataObject productCategoryBG = factoryService.create ("http://www.scm.com/ProductCategoryTypes/ProductCategoryBG", "ProductCategoryBG"); DataObject productCategory = productCategoryBG.createDataObject("productCategory"); DataObject product = productCategory.createDataObject("product"); DataObject productCategory3 = productCategoryBG3.createDataObject("productCategory"); FileOutputStream outfile2 = new FileOutputStream("productCategoryBGDocument.xml"); xmlSerializerService.writeXMLDocument(productCategoryBGDoc, outfile2); FileInputStream infile2 = new FileInputStream("productCategoryBGDocument.xml"); BOXMLDocument productCategoryBG4Document = xmlSerializerService.readXMLDocument(infile2); DataObject productCategoryBG5 = productCategoryBG4Document.getDataObject();