This interface provides the mechanisms for serializing and deserializing an XML document.
This interface is used to serialize and deserialize a business graph or a graph of business objects.
This is an example of the BOXMLSerializer interface.
BOFactory factoryService = BOFactory) new ServiceManager().locateService("com/ibm/websphere/bo/BOFactory"); BOXMLSerializer xmlSerializerService =`(BOXMLSerializer) new ServiceManager().locateService("com/ibm/websphere/bo/BOXMLSerializer"); // Create the business object graph. 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();
Last updated: Tue Feb 21 17:21:48 2006
(c) Copyright IBM Corporation 2005.
This information center is powered by Eclipse technology (http://www.eclipse.org)